 Hello, everyone. My name is Samprit Patel, Assistant Professor, Department of Computer Science and Engineering, Valchan Institute of Technology, Shalapur. Today, we are going to learn about data types in Python. In the end of this video, you will be understanding the data types available in Python, and you will be able to apply these data types in different applications. Before we go to data types, we will be covering operators and variables. So, understanding these first, we will then go to the data types which are numeric types, Boolean types and strings. So, starting with the operators, Python has these specific operators, that is, for addition list plus, multiplication, division, subtraction, modulus and power off. So, we will see these operators one by one with an example. So, starting with addition, say we want to add 10 plus 20. So, you can directly write 10 plus 20 and it will give 30. So, with the multiplication, we will have to use asterisk, that is the multiplication sign in computer language. So, 10 into 20 will be 200. Then it is subtraction. So, we will minus 10 from 20. So, using the minus sign, it will give you 10. Now, there is division. So, say we have to divide 20 by 6. It is 3. Moving on to modulus, we want to find mod of a particular number. So, say 20 percent of 100 will give you 20. Or other way round, if you want to find mod 100 mod 2, it will give you 0, as it is 100 is divisible by 0. Then power off. Many a times, we have to find the power of a number. For example, if you want to find the cube of 2, we have to write 2 into 2 into 2, that is 8. But Python has given you a simpler operator. That is, if you use multiplication operator twice in between the two numbers, it will give you the power of 2. That is 2 raised to 3. We want to find it will be 8. So, any numbers like if you want to find a square of 4. So, 4 raised to 2 will be 16. So, moving on to variables. Now, unlike many variables you might have seen in C, C++ and Java. Python has no specific command of declaring a variable. In Python, you need not specify the variable data type while defining a variable. So, variable can be any short name like x and y. Or more descriptive like if you want to specify age, then the variable of age will be age. Then car name, total volume, etc. There are some rules to specify a variable in Python. The first one is a variable must be, must start with a letter or an underscore. No variable can start with number. The variable can only have alpha numeric characters. And in symbols it can only take underscore. No other symbols are allowed in the variables of Python. Variables in Python are case sensitive. That is, see the example, first age all small letters, then age capital and the third is all caps. So, all the three variables are different and give a specific different data. Now, as you have understood operators and variables, we will move on to data types. In Python, Python has three data types, numeric types, Boolean type and string type. In numeric type, it holds integer value, long, float and complex as well. So, long can also hold octal and hexadecimal values. So, we will see some example regarding the data types. So, as we say, we do not need to specify any data type to a variable. We will say A is equals to 50. So, A, now we will check the type of A. That is the function type and we will pass A in it. So, see, here it is giving the type of A is int. Now, for float, float is a floating precision and Python takes up to 15 decimal points precision value. So, if we say A is equals to 2.5 and now if we check the type of A, so the type is float. Moving on to the complex numbers, if we say B is equals to 2 plus 3 j. So, B is assigned with 2 plus 3 j, which is a complex number. Now, if we check the type of B, so B is a complex number. So, pause the video and try to code the following statement. Write a program that does addition, subtraction, division and multiplication of two numbers. Now, we will see how to do this. So, we have taken two numbers. Say A, we have taken input. So, input function is used to take the value from the user. And similarly, we have taken a second number B from the user. Now, we have calculated the addition of A plus B and we are storing the value in C. And here we are printing. So, we will say addition of A and B is and we will pass C. So, we will just check whether this particular code is correct. So, enter to first number that is 10, second number that is 22 and the addition is 32. So, this is the output. So, similarly we can now do subtraction, division and multiplication. We will just use the same variables or values. We will just take the values once and we will just calculate all the things again and again. Now, here we will say C is equals to A minus B and we will just print the value of C again saying subtraction of A and B. So, A and B is C. We will just use some shortcuts to do this. So, here we will use A into B and we will say multiplication of A and B is C. We will again paste it for division and division of A and B is C. Now, we will run this code and see the output for ourselves. So, I will enter say 30, first number and second number say 5. So, addition is 35, subtraction is 25, multiplication is 150 and division is 6. So, this is the answer for this particular question. Now, the second data type is Boolean data type which is called Boolean data type in Python. There are two values for Boolean. Either the value will be true or false. Python internally represents true as 1 and false as 0. So, we will check this particular example. So, say we want to assume C is equal to true. So, we will check the type of C. So, the type of C is Boolean. So, this particular type is Boolean type, Boolean data type. Here, we have to take care that the T and F of the true and false respectively should be capital. Now, D is equals to say false. So, if we say type of DV is again a Boolean type. Moving forward to the last data type. So, the last data type is string. Now, string is a sequence of a character data. A string type in Python is called str. Now, the string in Python can be written in two ways. Either it can be in a double code or a single code. But when you open a double code, it should be closed by a double code. And if you are using a single code, the single code should be closed by a single code itself. So, we will see an example for that. For example, we assign P to be, say, Walshand Institute of Technology. We will say Q to be with a single code, Solapur, and we will complete the single code. So, see, we have opened a single code and we are closing with a double code. So, this will be not allowed. So, Q is equals to if you open with single code, you have to close with single code. Now, if you print P, Q. So, we will just give a space in between and again a comma. So, see, Walshand Institute of Technology, Solapur. So, this is defining the space in between. So, even if you do not give this, it is okay. So, I hope you have understood the data types in Python and how to implement these data types in different applications. So, as we see in the example we have used in for calculating addition, subtraction, multiplication and division. Similarly, you can design some applications like calculator using these data types. These are some references programming in Python 3 of peers and publications and core Python programming of DreamTech Press. So, you can also refer to these books if you want to understand the concepts of Python. Thank you.