All language subtitles for 003 Setting up Python on Windows-subtitle-en

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

1

Hello there and welcome to this new

lecture! In this lecture I'll show you

3

how to set up Python in your computer.

Specifically these instructions are for

5

Windows users so if you are a Mac or

Linux user you can skip this lecture

7

and you can go to the next lecture where

I'll show you how to set up Python on a

9

Mac and instructions also work for Linux

users so Windows users please follow if

11

you haven't installed Python yet, we're

going to download and install python and

13

also try Python out. And so you go to

python.org that's the official Python

15

website and you go to downloads and here

you'll see the latest Python version.

17

Currently it is 3.6.0.

Just click that and save file.

19

Also notice that there's also a version

of Python 2 so Python 2.7 to be exact

21

but Python 2 is not being supported

anymore after 2020 so Python 2 is slowly

23

retiring so it's advisable to use Python

3 this one in here and once you have

25

downloaded the dot exe file just click it.

Run. You can choose to install it in the

27

default directory but you can also do a

customized installation if you want to

29

change the directory, anyway make sure

you have checked this option at Python

31

3.6 to PATH so I'm going to go with the

default installation process. Yeah that

33

was it. Set up was successful. You can

close the window now and we can go ahead

35

and open Pythom so how do we do that

on windows? Well we can press the

37

Windows key button, so we're talking

about the Win key. By pressing it you

39

will be able to search on the start

button, alternatively you can simply go

41

to the start button, click it and then

type cmd and then click on c armed.exe

43

and that will open the windows command prompt.

And so this is like the terminal

45

on Mac or Linux. On Mac and Linux it

is referred to as the terminal on

47

Windows it is referred to as a comand

prompt or command line. To open Python all

49

you have to do is type in Python and

that will open an interactive session of

51

Python and an interactive session is

best for testing out so here you can

53

write lines of code one by one like that

and you promptly get the results in here.

55

So this is why we call it interactive, but

you cannot, it's not very appropriate to

57

write multiple lines of code, so let's

say you have a program that has 10 lines

59

of code and in that case you'd want to

write those lines in a file, in a Python

61

file but we will cover that later and

this is the interactive shell this is

63

good for testing, so before you do a

program you are not sure about certain

65

aspects, certain commands that you

want to include, certain keywords that

67

you want including in your program so you

test things out in here very quickly.

69

This is very efficient and it's also

good for learning. To exit the

71

interactive shell you press exit and

brackets, open and closing brackets.

73

Now something you maybe, you probably noted

was that the Python that I opened was version

75

3.5.2 but why is that because I

installed Python 3.6 in here, 3.6, so why did

77

I get five Python 3.5.2?

Well the answer is that I already had

79

Python 3.5.2

installed on my Windows so in other words

81

before I install Python 3.6 I could

trigger a Python shell like that so the

83

question is how do I run Python 3.6 now?

Well the first thing you should know is

85

that there is no problem having multiple

Python installations in your system, the

87

key here is that you have to assign

different commands to each of your

89

Python

instalations so for instance Python 3.5.2

91

has these commands

to run Python. Now for Python 3.6

93

we need to assign another

command and I'll go and search for the

95

installation directory of

Python 3.6 so open that and now Windows

97

when you search for Python, when you

enter the Python command here, Windows is

99

looking at the path variable, the Windows

path variable and it's searching for

101

this type of command Python but this

was already occupied by another so by

103

Python 3.5.2, that's why it

triggers Python 3.5.2,

105

so in that case you may want to do

trick here, let's say do Python 36 and

107

restart that command prompt and then

run again python 36 and you get Python 36.

109

So that's the trick and again of course

you can do operations here and so on

111

Of course you still have Python 3.5 at

least I have Python 3.5 maybe you don't

113

because you didn't have any Python

installed just yet, so that's the idea.

115

On your system if you install Python for

the first time, if you install

117

Python 3.6 you'll be

able to execute Python with this commands.

119

Python. If you had an existing Python

installation and you install a new one,

121

no problem, you can run Python 36 like I did

I hope this was clear and I hope you are

123

up and running now with Python

And I'll talk to you in the next lectures.

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