Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
0 Variables are names that you can create in Python to store values. 1
For example in this script here we don't have any variable I'm printing the value on the fly so to say 2
so the print function gets an input, that input is the output of the now function of the datetime 3
object of the datetime module. 4
We are going to see later what objects are and modules what they are and what functions are as well. 5
So my points about variables, if I was to remove the print function, remove the parentheses of the 6
print function as well, and move the print function down here. 7
So what I'm going to pass here is a variable that I'm going to use in here. 8
Let's say mynow as a variable name so that value now is being referenced by my now which I can call 9
in here, save the script. 10
You can use the upper arrow key to easily scroll through the previously executed statements in your terminal. 11
Python 3 basic dot py and so you get the output. You are not allowed to use things like that as 12
a variable name so that will output a syntax error because the minus is actually reserved as an 13
operator in Python. 14
Also you cannot use numbers because numbers are numbers. 15
You're going to get a syntax error again. 16
Now in variables you can actually store any kind of object. You can use, you can store numbers like 10. 17
You can store texts like "Hello", and whenever you print out mynumber, mytexts. 18
So the variables you just created and save, and execute you're going to get the value you saved in those 19
variables. 20
By the way you see that you can use print with as many arguments as you want. 21
So print is a function of the names you inputs in that function call. 22
This is a function call. 23
This is the function. 24
These are the arguments of the function call. We're going to see these concepts later on separately. 25
But I would still like to give you some clues gradually so that you can learn things better. 26
And when I explain functions later on you'd say: "Oh I know this", and that will help you learn faster. 27
Now you're starting to see that we can actually store different values in these variables, all these 28
values have different types, these two as well. 29
So let me talk about types in the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.