1 00:00:00,000 --> 00:00:02,970 [No audio] 2 00:00:02,971 --> 00:00:06,590 Let's suppose you are walking in the Amazon forest. 3 00:00:06,591 --> 00:00:08,533 [No audio] 4 00:00:08,533 --> 00:00:10,458 In the forest you meet a tribe, 5 00:00:10,459 --> 00:00:13,390 and the tribe has a cook. 6 00:00:14,930 --> 00:00:16,708 You want to tell the cook that you 7 00:00:16,709 --> 00:00:18,468 are hungry, so you need to eat. 8 00:00:18,469 --> 00:00:21,098 The problem is you don't know the language. 9 00:00:21,099 --> 00:00:24,270 So what you want, what you get, is an interpreter. 10 00:00:24,271 --> 00:00:27,633 [No audio] 11 00:00:27,633 --> 00:00:29,564 So that is the interpreter. 12 00:00:29,565 --> 00:00:33,718 You speak English to the interpreter, and 13 00:00:33,719 --> 00:00:38,400 the interpreter speaks Amazonish to the cook, 14 00:00:39,240 --> 00:00:41,253 and the cook serves you 15 00:00:41,254 --> 00:00:43,233 [No audio] 16 00:00:43,234 --> 00:00:47,350 the meal. Python works the same. 17 00:00:48,040 --> 00:00:50,138 This is you again, and you want to 18 00:00:50,139 --> 00:00:54,090 communicate with the processor of your computer. 19 00:00:54,091 --> 00:00:56,699 [No audio] 20 00:00:56,700 --> 00:00:58,846 For example, you want to know 21 00:00:58,847 --> 00:01:01,582 the sum of 3 and 4. 22 00:01:01,583 --> 00:01:04,936 The problem again is that the processor speaks 23 00:01:04,937 --> 00:01:08,800 a very difficult language called machine language. 24 00:01:08,801 --> 00:01:11,106 And this language is very hard for 25 00:01:11,107 --> 00:01:13,790 humans to speak or to write. 26 00:01:15,200 --> 00:01:20,540 So what we get is an interpreter called CPython. 27 00:01:20,541 --> 00:01:22,444 So what is CPython? 28 00:01:22,445 --> 00:01:24,822 CPython is the software we 29 00:01:24,823 --> 00:01:27,142 installed in the previous videos. 30 00:01:27,143 --> 00:01:30,858 So when you download Python from python.org and you 31 00:01:30,859 --> 00:01:34,240 install it, what you're installing is actually CPython. 32 00:01:34,241 --> 00:01:35,700 It's an interpreter. 33 00:01:37,160 --> 00:01:41,998 This interpreter gets Python language from you, and 34 00:01:41,999 --> 00:01:45,902 it translates that language to machine language, and 35 00:01:45,903 --> 00:01:48,964 it speaks that machine language to the processor. 36 00:01:48,965 --> 00:01:53,092 In return, the processor uses the computer display, 37 00:01:53,093 --> 00:01:56,984 so your laptop screen to display the results. 38 00:01:56,985 --> 00:01:58,370 For example, 7. 39 00:01:58,371 --> 00:02:00,110 And you see that 7. 40 00:02:01,360 --> 00:02:05,800 So as you can see, Python is just like English. 41 00:02:05,801 --> 00:02:07,256 It's just a language. 42 00:02:07,257 --> 00:02:10,924 The software you install and you use to execute Python 43 00:02:10,925 --> 00:02:15,244 is just a software and it's written in C language. 44 00:02:15,245 --> 00:02:17,404 It happens to be written in C language. 45 00:02:17,405 --> 00:02:20,826 That's why it's called CPython, even though most 46 00:02:20,827 --> 00:02:23,720 people refer to it as just Python. 47 00:02:23,721 --> 00:02:26,314 When you say, did you install Python? Yes. 48 00:02:26,315 --> 00:02:29,168 Well, you're speaking of installing CPython. 49 00:02:29,169 --> 00:02:33,428 The Python language itself is just knowledge. 50 00:02:33,429 --> 00:02:36,404 It's stored in documentation. 51 00:02:36,405 --> 00:02:38,302 If you go to python.org and then 52 00:02:38,303 --> 00:02:41,518 go to the Documentation menu, then you 53 00:02:41,519 --> 00:02:44,196 should see the documentation of Python. 54 00:02:44,197 --> 00:02:47,550 So the documentation of Python is equivalent of 55 00:02:48,720 --> 00:02:51,768 a dictionary, an English dictionary, such as Oxford 56 00:02:51,769 --> 00:02:55,608 dictionary, where the English language is documented. 57 00:02:55,609 --> 00:02:57,074 There is one difference, though. 58 00:02:57,075 --> 00:02:59,416 In the case where we spoke to the cook, 59 00:02:59,417 --> 00:03:06,508 we used spoken language. To communicate with the interpreter 60 00:03:06,509 --> 00:03:10,400 in here, we use text files. 61 00:03:10,401 --> 00:03:12,966 [No audio] 62 00:03:12,980 --> 00:03:15,046 So we write the language in a text 63 00:03:15,047 --> 00:03:18,668 file and the interpreter reads that text file. 64 00:03:18,669 --> 00:03:21,982 Of course, we give the extension .py to these 65 00:03:21,983 --> 00:03:24,772 text files, but they are still text files. 66 00:03:24,773 --> 00:03:26,366 The extension is different. 67 00:03:26,367 --> 00:03:27,390 And that's the idea. 68 00:03:27,391 --> 00:03:29,054 That's what Python is. 69 00:03:29,055 --> 00:03:30,804 So Python is the language. 70 00:03:30,805 --> 00:03:33,998 And thanks for following this example, this comparison, and 71 00:03:33,999 --> 00:03:35,333 I'll talk to you in the next video.