1
00:00:00,420 --> 00:00:07,650
So, of course, there are not only numbers in Python, so the floating point type or the integer type

2
00:00:07,650 --> 00:00:10,680
on a complex type are not the only types that exist.

3
00:00:11,340 --> 00:00:14,790
For example, another very important data type is string.

4
00:00:15,930 --> 00:00:22,710
So we can create a string, which basically means a word or text or sentence or something by writing

5
00:00:23,070 --> 00:00:24,300
these symbols here.

6
00:00:24,810 --> 00:00:30,090
We can write hello like this, but also we can write hello like this there.

7
00:00:30,090 --> 00:00:33,870
And maybe not exactly the same, but very much similar.

8
00:00:34,590 --> 00:00:40,980
The main advantage for using these two things here is you can write something like, Let's get started.

9
00:00:42,120 --> 00:00:43,140
So you see it works.

10
00:00:43,140 --> 00:00:48,990
And if I change them, then we have the problem that python things.

11
00:00:49,350 --> 00:00:54,240
Only this let is to string, and then it doesn't really know what to do with the remainder.

12
00:00:54,690 --> 00:00:57,660
So gives us an invalid syntax error.

13
00:00:58,590 --> 00:00:59,550
So let's change it back

14
00:01:02,430 --> 00:01:03,630
to this one.

15
00:01:05,250 --> 00:01:11,370
So, of course, we can store a string in a variable, which I called here string, and then we can

16
00:01:11,370 --> 00:01:13,080
do things with this variable.

17
00:01:13,110 --> 00:01:19,210
For example, we can use to lend command, which are, yeah, which determines the length.

18
00:01:19,320 --> 00:01:22,320
So basically the number of characters of the string.

19
00:01:23,300 --> 00:01:31,900
So we have four, six, seven, 11 and then three spaces, so 14 characters in this string.

20
00:01:33,680 --> 00:01:42,110
What we can also do is we can write something like the answer is plus and then another string, so we

21
00:01:42,110 --> 00:01:43,880
can basically merge two strings.

22
00:01:44,360 --> 00:01:47,030
And you can do this very easily by just writing plus.

23
00:01:47,210 --> 00:01:53,660
So basically adding two strings, and you see the result is a single string, which tells us the answer

24
00:01:53,660 --> 00:01:54,830
is five point zero.

25
00:01:56,530 --> 00:02:00,490
So how does it work when we have some actual calculation?

26
00:02:01,030 --> 00:02:04,870
And we want to then outputs the result in a sentence?

27
00:02:05,800 --> 00:02:11,170
For example, say we want to calculate five plus eight and want to output the result.

28
00:02:11,890 --> 00:02:16,330
So what we could do then is we could store two result in a variable, for example, called eight.

29
00:02:17,380 --> 00:02:19,660
And then we write the answer is.

30
00:02:20,110 --> 00:02:28,930
And then if I just would write, the answer is plus a I get an error because we can only concatenate

31
00:02:29,170 --> 00:02:32,200
strings and not an integer and a string.

32
00:02:32,920 --> 00:02:36,400
The problem is here that a is a no and not a string.

33
00:02:37,180 --> 00:02:45,160
So we must first convert to data tied to a string by writing SDR, and then we get the correct results.

34
00:02:45,520 --> 00:02:47,920
The answer is 13.

