All language subtitles for 7. Python 2 vs Python 3

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian Download
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:02,640 --> 00:00:10,860 Whenever you start to learn Python, it's unavoidable that you'll encounter this topic of Python two 2 00:00:11,130 --> 00:00:13,060 versus Python three. 3 00:00:13,800 --> 00:00:17,000 So what is this all about? 4 00:00:17,400 --> 00:00:18,860 And it's a very important topic. 5 00:00:19,540 --> 00:00:24,150 Now, first of all, Python is created by a human right. 6 00:00:24,450 --> 00:00:27,750 As a matter of fact, it was created by this person right here. 7 00:00:28,740 --> 00:00:35,530 His name is Guido now a programming language is always evolving. 8 00:00:36,060 --> 00:00:38,550 It's not like somebody creates a programming language. 9 00:00:38,550 --> 00:00:40,190 It's perfect and that's it. 10 00:00:40,380 --> 00:00:45,060 No, all programming languages are constantly being updated, just like on your phone. 11 00:00:45,090 --> 00:00:47,170 You constantly get software updates. 12 00:00:47,730 --> 00:00:54,630 Well, a programming language is constantly evolving to make it better and better because nobody gets 13 00:00:54,630 --> 00:00:55,860 it right the first time. 14 00:00:56,790 --> 00:00:59,290 And by the way, this is a great video that I'm going to link to. 15 00:00:59,940 --> 00:01:01,470 You can check it out in the resources. 16 00:01:02,100 --> 00:01:08,910 Now, Python was created in nineteen ninety one by this gentleman, and it was actually created with 17 00:01:08,910 --> 00:01:12,720 the name from Monty Python, which was a British comedy group. 18 00:01:13,290 --> 00:01:17,730 But like I said before, the language is always evolving. 19 00:01:17,940 --> 00:01:28,500 And in 2008, Greedo decided that what Python version two, which has been used for a very long time, 20 00:01:28,800 --> 00:01:32,280 had some things that he and the community wanted to change. 21 00:01:33,000 --> 00:01:42,660 So in 2008, they decided to create Python three, a new version of the language here was the tricky 22 00:01:42,660 --> 00:01:42,960 part. 23 00:01:43,470 --> 00:01:51,180 You see when you update software, lets say on your phone or even on your laptop, you expect things 24 00:01:51,180 --> 00:01:53,240 to keep working right? 25 00:01:53,970 --> 00:01:55,530 Updates are usually good. 26 00:01:55,560 --> 00:01:56,670 They're improvements. 27 00:01:57,120 --> 00:02:03,970 But some of the features that Python two had, they didn't like or they wanted to change completely. 28 00:02:04,080 --> 00:02:08,250 So Python three introduced what we call breaking changes. 29 00:02:08,700 --> 00:02:14,080 That is, if you updated to Python three, remember the python interpreter? 30 00:02:14,100 --> 00:02:18,240 The C Python translator that we've been talking about? 31 00:02:18,510 --> 00:02:27,210 Well, as soon as you updated that your python to code wasn't really going to work, it's like updating 32 00:02:27,210 --> 00:02:30,580 your phone and then all of a sudden all your apps stop working. 33 00:02:31,380 --> 00:02:33,900 That doesn't sound very good, does it? 34 00:02:34,850 --> 00:02:41,870 That's pretty much what happened in 2008, most companies that wrote their code in Python version two 35 00:02:42,230 --> 00:02:48,950 just kept Python version two because, well, for them to upgrade meant that they had to go through 36 00:02:48,950 --> 00:02:52,800 their code line by line and make some changes. 37 00:02:53,300 --> 00:02:56,300 Now, these changes weren't that significant. 38 00:02:56,930 --> 00:03:02,210 For example, I'll link to some resources, but don't worry, these are topics that we're going to cover 39 00:03:02,210 --> 00:03:03,050 throughout the course. 40 00:03:03,590 --> 00:03:06,020 But different things wouldn't work. 41 00:03:06,310 --> 00:03:12,110 For example, the print function which we've learned about in Python two, it didn't have the brackets. 42 00:03:12,290 --> 00:03:14,540 It looked like this. 43 00:03:15,410 --> 00:03:16,550 And Python three. 44 00:03:17,600 --> 00:03:23,640 Used the brackets, so all the code that had print like this would break. 45 00:03:24,060 --> 00:03:28,910 Now, the differences themselves aren't that big. 46 00:03:29,180 --> 00:03:36,740 I mean, you can read through them and we'll talk about this in the course, but overall, you can learn 47 00:03:36,740 --> 00:03:37,490 them in a day. 48 00:03:38,540 --> 00:03:44,060 That's why when we learn Python, most of the time we're learning Python three. 49 00:03:44,240 --> 00:03:47,690 But you can use the same knowledge with the older version of Python. 50 00:03:48,590 --> 00:03:56,810 Now, you may see some Python version two code out there for companies that have an upgraded, but it's 51 00:03:56,810 --> 00:04:03,680 now what we call legacy, that is come 2020, it's going to stop receiving security updates. 52 00:04:03,980 --> 00:04:09,320 So the community, python community as a whole is saying, hey, everybody, start using Python three 53 00:04:09,500 --> 00:04:12,860 because we're going to stop maintaining Python two. 54 00:04:13,460 --> 00:04:17,810 So we're going to learn the most up to date version three in this course. 55 00:04:18,020 --> 00:04:25,040 But we're also going to touch on some older topics that Python two covers just in case you encounter 56 00:04:25,040 --> 00:04:29,240 them when you work for a company that perhaps still supports legacy code. 57 00:04:30,350 --> 00:04:36,830 But as I mentioned, the whole community as a whole is moving towards Python three, this website, 58 00:04:36,830 --> 00:04:44,780 for example, shows you how many big packages, popular python packages, which we'll talk about support 59 00:04:45,050 --> 00:04:45,860 Python three. 60 00:04:46,610 --> 00:04:52,100 In our case, there's only four popular packages that don't support Python three. 61 00:04:52,310 --> 00:04:55,840 So what I'm saying is Python three is the way to go. 62 00:04:55,850 --> 00:04:56,870 It's the way of the future. 63 00:04:56,900 --> 00:04:59,090 That's what we're going to learn in the course. 64 00:04:59,090 --> 00:05:06,350 But I want you to be aware of the historical context and one thing to be careful of when in this course 65 00:05:06,500 --> 00:05:08,600 you're searching for answers. 66 00:05:08,630 --> 00:05:12,610 Or maybe I have some exercises that require you to Google things. 67 00:05:13,340 --> 00:05:22,850 For example, if we go to the Python documentation, which is the reference of how well what the programming 68 00:05:23,060 --> 00:05:25,400 language does, you'll see that. 69 00:05:26,490 --> 00:05:33,120 You can choose the versions here and you always want to go with the latest, but you might find some 70 00:05:33,360 --> 00:05:37,080 answers online that still use Python version two. 71 00:05:37,650 --> 00:05:43,080 So you want to make sure that when you're searching for answers that you don't encounter any legacy 72 00:05:43,080 --> 00:05:43,440 code. 73 00:05:44,800 --> 00:05:50,050 Like I said, ninety five percent of the time, it's mostly the same, but you usually want to keep 74 00:05:50,050 --> 00:05:56,700 current with the language it has the most community support, most up to date, most secure language. 75 00:05:57,550 --> 00:06:01,750 So just a quick note about Python three versus Python two. 76 00:06:02,680 --> 00:06:09,550 When you hear the word python, people are generally just talking about both Python three in Python 77 00:06:09,550 --> 00:06:09,790 two. 78 00:06:10,900 --> 00:06:19,060 And if you remember in our Reppel, when we created our first program, you see that you're using Python 79 00:06:19,060 --> 00:06:20,480 version three point six. 80 00:06:20,920 --> 00:06:24,760 This is the default standard version that Reppel comes. 81 00:06:25,600 --> 00:06:29,160 So right away, we know that we're using Python three. 82 00:06:29,530 --> 00:06:30,160 Awesome. 83 00:06:30,190 --> 00:06:31,000 It's up to date. 84 00:06:31,000 --> 00:06:31,570 It's new. 85 00:06:32,200 --> 00:06:34,150 The whole community is behind it. 86 00:06:34,180 --> 00:06:37,540 Well, most of the community is behind it, so we're all good to go. 87 00:06:38,110 --> 00:06:39,190 I'll see in the next video. 88 00:06:39,600 --> 00:06:39,780 Bye. 8635

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.