Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
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
Hey, guys.
If you are coming from other programming languages, maybe you are wondering how to define a constant
in Python.
There are values in the real world that will never change.
The mathematical constant pi with three decimal points will always be 3.1 42a day will always have 24
hours, and the boiling point of water at sea level will always be 100 degrees Celsius or 212 degrees
Fahrenheit.
These values are known as constants.
Python does not have anything in the language to declare a constant.
A constant is declared like any other variable using x name, the equal sign and the value.
In general, constant values are often written with uppercase letters to indicate that.
Let's declare some constants.
Pi equals 3.14 or six in our.
Equals 3600.
Or days in week equals seven.
All of these are constants.
I declared them as any other variable, but I used uppercase letters.
Note that Python will not treat them in any special way.
You can simply change them without any warnings or errors.
For example, pi equals 3.142.
The permitted.
There is no error.
The exit.
In the next video, we'll talk about dynamic versus static typing.
I'll see you soon.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.