1 00:00:02,340 --> 00:00:13,010 Hello and welcome to the ordeal on the data types in Python data types and classification of data that 2 00:00:13,020 --> 00:00:18,710 tells the interpreter or the compiler how you want to use the data. 3 00:00:20,560 --> 00:00:25,240 And every value in python has a data type 4 00:00:28,660 --> 00:00:37,790 a data type in computing terms is a set of data values having predefined characteristics and examples 5 00:00:37,790 --> 00:00:50,060 of data types include integers R I N T floating point numbers are flawed complex numbers strings are 6 00:00:50,200 --> 00:01:01,470 SD are boolean coming to a data structure or data structure it is a collection of simple or primitive 7 00:01:01,470 --> 00:01:02,610 data types. 8 00:01:02,610 --> 00:01:08,100 Example lists set dictionaries tuples etc. 9 00:01:10,860 --> 00:01:21,520 And yet some of the data types that are defined in Python integers loading by numbers complex numbers 10 00:01:23,310 --> 00:01:32,670 come under the python numbers category like and mapped integers in computer programming are whole numbers 11 00:01:32,970 --> 00:01:45,860 that can be positive negative or zero and an integer can also be known as an AI in D floating by numbers 12 00:01:45,860 --> 00:01:55,950 represent negative and positive numbers with fractional but any number that you entered in the in python 13 00:01:56,370 --> 00:01:59,020 will be interpreted as a number. 14 00:01:59,340 --> 00:02:06,570 You're not required to declare what kind of data type your entering python will constitute any number 15 00:02:06,570 --> 00:02:14,680 added in without the smells as an integer and any number added in with decimals as a flaw. 16 00:02:15,360 --> 00:02:21,540 Unlike other programming languages Python has no command for declaring a variable. 17 00:02:22,200 --> 00:02:34,860 So for example in C or C++ you was declared or defined a variable whereas in Python you can directly 18 00:02:34,950 --> 00:02:46,580 assign or value to the variable and if you want to display the variable use the print function in the 19 00:02:46,610 --> 00:02:48,860 Python programming language. 20 00:02:48,860 --> 00:02:51,970 The variables are fine does. 21 00:02:52,100 --> 00:02:53,890 So what does this mean. 22 00:02:54,020 --> 00:03:02,930 That means the variable e that we have declared here acts as a pointer which binds to a specific memory 23 00:03:02,930 --> 00:03:08,450 location that contains D value to. 24 00:03:08,620 --> 00:03:18,400 So as you can see here the variable a is pointing to the memory location which contained the value to 25 00:03:18,730 --> 00:03:19,560 now. 26 00:03:19,930 --> 00:03:30,930 If I change the value of the way you build a tool say for example be equal to 10 in that case. 27 00:03:31,020 --> 00:03:41,160 Now the variable is not binding and devalued too but since we have assigned value 10 to a it does no 28 00:03:41,160 --> 00:03:46,100 pointing to the memory location which contains this particular value. 29 00:03:46,290 --> 00:03:51,110 We can also assign a string value to the variable A. 30 00:03:51,290 --> 00:04:00,700 In that case the pointer a bind to the memory location containing that particular string. 31 00:04:00,810 --> 00:04:11,730 Say for example I assign devalue the string next to the pointer a so the pointer a. 32 00:04:11,740 --> 00:04:21,010 Now points to the memory location containing the string text and how do we know that memory location 33 00:04:21,010 --> 00:04:26,040 changes if we assign a different value to the word event. 34 00:04:26,230 --> 00:04:30,490 For that we can use the python built in function. 35 00:04:30,490 --> 00:04:41,790 I d and you pass in the object the bad and this is so loud let so open the GOP download book app and 36 00:04:41,790 --> 00:04:43,280 test the functionality 37 00:04:46,060 --> 00:04:56,380 so here is the Jupiter notebook book document and in the first two code saying assign value to the variable 38 00:04:56,530 --> 00:05:05,100 e and in order to execute this score you need to hit shift into keys. 39 00:05:05,200 --> 00:05:05,760 All right. 40 00:05:05,770 --> 00:05:09,200 The first two code is executed. 41 00:05:09,400 --> 00:05:20,600 Next we would like to know the the memory location with the object where value to install it again execute 42 00:05:20,660 --> 00:05:22,350 the cell. 43 00:05:22,940 --> 00:05:33,310 So this is the location where the pointer is pointing to not let us change the value or B again let's 44 00:05:33,310 --> 00:05:52,420 assign the value sixty seven and then execute and again use the idea function to check the memory address. 45 00:05:52,450 --> 00:06:02,470 So this is the memory address to which the pointer a is pointing to now now looked assign some text 46 00:06:03,370 --> 00:06:13,690 execute the C shift and dirt and then use the idea function to see the memory location. 47 00:06:13,740 --> 00:06:22,950 So this is a memory location that is pointing to now if you want to verify the data type of a particular 48 00:06:22,950 --> 00:06:28,480 variable you can use the python built in function type. 49 00:06:28,650 --> 00:06:36,600 So if you want to verify the data type of the variable C you can use the built in function type do you 50 00:06:36,600 --> 00:06:39,310 IP and enter the object here. 51 00:06:41,550 --> 00:06:49,440 So here you see that the variability is all from type Integer. 52 00:06:49,440 --> 00:06:56,960 Let's now see the data type of variable e it is also or integer data type. 53 00:06:57,210 --> 00:07:05,910 Let's check the data type of variable B so as you can see it of the data type is d odd with this string.