1 00:00:00,960 --> 00:00:04,320 Instructor: Let's learn about the Python data types, 2 00:00:04,320 --> 00:00:07,020 all the options we have in Python. 3 00:00:07,020 --> 00:00:09,360 Now we're back to our repl.it, 4 00:00:09,360 --> 00:00:11,310 so we can write some Python code. 5 00:00:11,310 --> 00:00:16,309 We see over here that we're using Python version 3.6. 6 00:00:16,470 --> 00:00:17,310 That's great. 7 00:00:17,310 --> 00:00:21,693 Let's minimize this and start writing our first Python code. 8 00:00:22,530 --> 00:00:25,203 Now we're gonna talk about data types, 9 00:00:27,030 --> 00:00:29,853 and Python has several available to us. 10 00:00:30,960 --> 00:00:32,820 Now I'm going to list them out for you 11 00:00:32,820 --> 00:00:35,670 and then we're gonna talk about each one individually. 12 00:00:35,670 --> 00:00:38,250 First, we have something called int, 13 00:00:38,250 --> 00:00:40,170 and you see right away when I type, 14 00:00:40,170 --> 00:00:44,250 I have the repl already give me hint 15 00:00:44,250 --> 00:00:45,360 and it's highlighting it. 16 00:00:45,360 --> 00:00:49,833 If I hover over it, it shows me that int stands for integer. 17 00:00:50,820 --> 00:00:53,223 We also have something called float. 18 00:00:54,630 --> 00:00:58,800 We have buol, which stands for buolean. 19 00:00:58,800 --> 00:01:01,653 We have str, which stands for string, 20 00:01:03,510 --> 00:01:04,343 list, 21 00:01:06,390 --> 00:01:07,223 tuple, 22 00:01:09,180 --> 00:01:10,083 set, 23 00:01:11,850 --> 00:01:13,893 and dict. 24 00:01:15,240 --> 00:01:17,220 Now, what are these? 25 00:01:17,220 --> 00:01:18,963 These are data types, right? 26 00:01:20,100 --> 00:01:23,190 A data type is a value in Python, 27 00:01:23,190 --> 00:01:27,630 so you can think of it as exactly that, values. 28 00:01:27,630 --> 00:01:30,600 So int would represent all numbers, for example. 29 00:01:30,600 --> 00:01:35,280 String will represent all letters, for example. 30 00:01:35,280 --> 00:01:37,500 And a program is simply instructions 31 00:01:37,500 --> 00:01:40,740 that tell a computer what to do, and what does that mean? 32 00:01:40,740 --> 00:01:43,140 It's all about storing information, 33 00:01:43,140 --> 00:01:48,060 or a data type, and modifying that information. 34 00:01:48,060 --> 00:01:51,240 We're taking actions on these data types. 35 00:01:51,240 --> 00:01:52,770 So the two crucial steps 36 00:01:52,770 --> 00:01:54,600 when learning a programming language 37 00:01:54,600 --> 00:01:57,840 is that, well, we have these data types 38 00:01:57,840 --> 00:02:00,900 that we need to understand that exist in a language, 39 00:02:00,900 --> 00:02:04,050 and then we need to learn how we can manipulate the data, 40 00:02:04,050 --> 00:02:06,750 create, store, read, change, 41 00:02:06,750 --> 00:02:09,449 remove this data from the machine. 42 00:02:09,449 --> 00:02:12,240 Now, these data types are called 43 00:02:12,240 --> 00:02:16,110 the fundamental data types in Python. 44 00:02:16,110 --> 00:02:18,033 They are the core to the language. 45 00:02:19,470 --> 00:02:23,040 Now, after the fundamental data types, 46 00:02:23,040 --> 00:02:26,493 we also have something called classes. 47 00:02:27,780 --> 00:02:29,730 So beyond these data types, 48 00:02:29,730 --> 00:02:31,480 we can actually create our own 49 00:02:32,580 --> 00:02:35,130 using something called classes. 50 00:02:35,130 --> 00:02:38,340 So these will be custom types. 51 00:02:38,340 --> 00:02:40,650 Again, something that we'll learn about. 52 00:02:40,650 --> 00:02:44,760 So I can create a class that I can name whatever I want. 53 00:02:44,760 --> 00:02:48,060 For example, SuperCar. 54 00:02:48,060 --> 00:02:50,490 Now that doesn't exist, but I can create it, 55 00:02:50,490 --> 00:02:52,840 and we'll explore how to do that in the course. 56 00:02:53,700 --> 00:02:57,360 Now, besides the fundamental data types, 57 00:02:57,360 --> 00:03:00,633 the classes, which will be our own custom types, 58 00:03:02,100 --> 00:03:06,483 we also have something called specialized data types. 59 00:03:09,840 --> 00:03:12,870 And these specialized data types, 60 00:03:12,870 --> 00:03:15,630 they're not built into Python, 61 00:03:15,630 --> 00:03:20,130 but they're special packages and modules 62 00:03:20,130 --> 00:03:23,430 that we can use from libraries. 63 00:03:23,430 --> 00:03:26,430 Now, again, this is a topic that we'll cover later, 64 00:03:26,430 --> 00:03:30,900 but these are, you can think of it as extra boosts. 65 00:03:30,900 --> 00:03:35,790 Whenever we don't have a data type that we want 66 00:03:35,790 --> 00:03:38,430 in the standard Python package, 67 00:03:38,430 --> 00:03:42,420 and maybe we don't want to create our own custom types, 68 00:03:42,420 --> 00:03:44,970 there are specialized data types that we can use 69 00:03:44,970 --> 00:03:47,520 from what we call modules. 70 00:03:47,520 --> 00:03:50,640 So you can think of it as extensions 71 00:03:50,640 --> 00:03:52,110 that we can add to the language. 72 00:03:52,110 --> 00:03:53,940 Again, something that we'll talk about 73 00:03:53,940 --> 00:03:55,620 later on in the course. 74 00:03:55,620 --> 00:03:59,010 And then, finally, there's another type 75 00:03:59,010 --> 00:04:02,280 that is a little special called None. 76 00:04:02,280 --> 00:04:04,740 And None, as you can see, it's being highlighted, 77 00:04:04,740 --> 00:04:07,350 which means it means something in the language. 78 00:04:07,350 --> 00:04:12,330 None, as the name suggests, means nothing. 79 00:04:12,330 --> 00:04:16,470 It's kind of like the idea of zero in math. 80 00:04:16,470 --> 00:04:19,050 It's the absence of value. 81 00:04:19,050 --> 00:04:21,660 It's simply nothing. 82 00:04:21,660 --> 00:04:24,150 And you'll see why this is important 83 00:04:24,150 --> 00:04:26,340 in programming later on. 84 00:04:26,340 --> 00:04:29,760 So these are our data types that we're gonna talk 85 00:04:29,760 --> 00:04:32,460 and we're gonna use in our language. 86 00:04:32,460 --> 00:04:34,890 Now we're gonna start with the fundamental data types, 87 00:04:34,890 --> 00:04:37,680 which are nice and simple for us to get through. 88 00:04:37,680 --> 00:04:39,630 So let's start one by one. 89 00:04:39,630 --> 00:04:40,590 And you know what? 90 00:04:40,590 --> 00:04:42,633 Let's start with these two for now. 91 00:04:43,530 --> 00:04:45,120 I'll see you in the next one. 92 00:04:45,120 --> 00:04:45,953 Bye-bye.