Strings and numbers let's kick it off by talking about tweens so streams are simply sequences of characters
and they are widely used in programming.
You want to download a bunch of files from an FTB site using a Python script.
Well you'd have to use a string to take a bite from the League of Their B side.
Would you want to create a table in Python.
Again you use a screen name or columns or your old strings.
Well of course they can be storing variables just like this.
I'm going to sort through you Springstein three different variables here.
Let's say a variable filename equals whether 19 0 1 very well thought top a table equals temperature
variable year equals 19 No.
1.
Strings are always in close with quotes as you concede.
In this case I use double quotes about seeing of quotes can be used as well.
Notice the last variable year 19:1 it may be a number in our perception but Python recognizes it as
a string.
The reason for that is that you are declaring it in quotes.
This means you cannot perform mathematical operations on that quoted number.
Pipeful knows you are declaring the numbers when you write them without quotes.
So if you want to declare a number you go straight away without using quotes.
Let's say a real year equals 19 or 1 and look at this and that gives an error because Python is trying
to add up a string with a number.
You said if you try to add up the other variable we just created you get what you expected.
That's the sum of the number 19:1 with one.
Well you could also add upstream if you want.
You can do that using the and operator.
For example let's say file name belongs on a scale which is a string table and we have a string.
Now when you use the plus sign for strings we call the process concatenation.
Ignore what I said earlier.
How about adding up strings I like.
Yeah so we concatenate strings.
And here we concatenated three strings a string contained in the variable filename on their scores string
and the string contained in the table variable as well.
The result was a single string.
Now strings are just a bunch of characters.
There are no subtypes of strings numbers however can be of different types to other types to be mentioned
here are integers and floats integers are like all numbers but they include negative numbers as well.
The normal soling the variable potato price we created earlier is an example of an integer and a few
words about floats floats or decimal numbers.
A man here holds a float number and so does the potato version and you are very blind just screaming.
You're going to of course chicken.
If you don't believe me.
You can check the type of your variable values
yes.
In most other cases you'll be using floats for your values but you could also have to use integers for
certain data such as number of people for example.
It doesn't make sense to have free will in one persons so you have to use only bija.
You could also run into a certain scenario where you really have to use anything you say you want to
multiply string.
And to do that you'd use the multiplication operator.
Let's say the string byte times two.
Bye bye and Jeff.
See here in the next lecture.