All language subtitles for 1. Variables

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian Download
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
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: 0 1 00:00:00,870 --> 00:00:08,160 Variables are names that you can create in Python to store values. 1 2 00:00:08,400 --> 00:00:16,200 For example in this script here we don't have any variable I'm printing the value on the fly so to say 2 3 00:00:17,040 --> 00:00:27,910 so the print function gets an input, that input is the output of the now function of the datetime 3 4 00:00:28,000 --> 00:00:30,440 object of the datetime module. 4 5 00:00:30,760 --> 00:00:36,780 We are going to see later what objects are and modules what they are and what functions are as well. 5 6 00:00:37,150 --> 00:00:43,990 So my points about variables, if I was to remove the print function, remove the parentheses of the 6 7 00:00:43,990 --> 00:00:49,230 print function as well, and move the print function down here. 7 8 00:00:49,300 --> 00:00:54,010 So what I'm going to pass here is a variable that I'm going to use in here. 8 9 00:00:54,040 --> 00:01:02,170 Let's say mynow as a variable name so that value now is being referenced by my now which I can call 9 10 00:01:02,170 --> 00:01:04,570 in here, save the script. 10 11 00:01:08,170 --> 00:01:17,680 You can use the upper arrow key to easily scroll through the previously executed statements in your terminal. 11 12 00:01:17,950 --> 00:01:25,900 Python 3 basic dot py and so you get the output. You are not allowed to use things like that as 12 13 00:01:25,900 --> 00:01:35,900 a variable name so that will output a syntax error because the minus is actually reserved as an 13 14 00:01:35,900 --> 00:01:37,420 operator in Python. 14 15 00:01:37,790 --> 00:01:41,300 Also you cannot use numbers because numbers are numbers. 15 16 00:01:44,620 --> 00:01:47,270 You're going to get a syntax error again. 16 17 00:01:47,460 --> 00:01:56,350 Now in variables you can actually store any kind of object. You can use, you can store numbers like 10. 17 18 00:01:58,450 --> 00:02:10,070 You can store texts like "Hello", and whenever you print out mynumber, mytexts. 18 19 00:02:10,150 --> 00:02:20,230 So the variables you just created and save, and execute you're going to get the value you saved in those 19 20 00:02:20,410 --> 00:02:22,060 variables. 20 21 00:02:22,060 --> 00:02:27,170 By the way you see that you can use print with as many arguments as you want. 21 22 00:02:27,310 --> 00:02:33,250 So print is a function of the names you inputs in that function call. 22 23 00:02:33,280 --> 00:02:35,050 This is a function call. 23 24 00:02:35,140 --> 00:02:36,390 This is the function. 24 25 00:02:36,460 --> 00:02:44,430 These are the arguments of the function call. We're going to see these concepts later on separately. 25 26 00:02:44,460 --> 00:02:50,110 But I would still like to give you some clues gradually so that you can learn things better. 26 27 00:02:50,160 --> 00:02:55,330 And when I explain functions later on you'd say: "Oh I know this", and that will help you learn faster. 27 28 00:02:55,350 --> 00:03:01,590 Now you're starting to see that we can actually store different values in these variables, all these 28 29 00:03:01,590 --> 00:03:05,040 values have different types, these two as well. 29 30 00:03:05,130 --> 00:03:08,010 So let me talk about types in the next video. 3416

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