All language subtitles for 004 Constants_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
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 Download
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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,970 --> 00:00:01,930 Hey, guys. 2 00:00:01,930 --> 00:00:07,150 If you are coming from other programming languages, maybe you are wondering how to define a constant 3 00:00:07,150 --> 00:00:08,050 in Python. 4 00:00:08,470 --> 00:00:12,190 There are values in the real world that will never change. 5 00:00:13,040 --> 00:00:23,300 The mathematical constant pi with three decimal points will always be 3.1 42a day will always have 24 6 00:00:23,300 --> 00:00:32,990 hours, and the boiling point of water at sea level will always be 100 degrees Celsius or 212 degrees 7 00:00:32,990 --> 00:00:33,800 Fahrenheit. 8 00:00:34,160 --> 00:00:37,250 These values are known as constants. 9 00:00:37,880 --> 00:00:42,290 Python does not have anything in the language to declare a constant. 10 00:00:42,590 --> 00:00:49,640 A constant is declared like any other variable using x name, the equal sign and the value. 11 00:00:51,390 --> 00:00:58,380 In general, constant values are often written with uppercase letters to indicate that. 12 00:01:00,100 --> 00:01:02,470 Let's declare some constants. 13 00:01:02,560 --> 00:01:09,970 Pi equals 3.14 or six in our. 14 00:01:12,910 --> 00:01:15,970 Equals 3600. 15 00:01:18,060 --> 00:01:22,260 Or days in week equals seven. 16 00:01:22,890 --> 00:01:25,140 All of these are constants. 17 00:01:25,320 --> 00:01:31,710 I declared them as any other variable, but I used uppercase letters. 18 00:01:32,130 --> 00:01:36,330 Note that Python will not treat them in any special way. 19 00:01:36,780 --> 00:01:41,580 You can simply change them without any warnings or errors. 20 00:01:42,240 --> 00:01:47,880 For example, pi equals 3.142. 21 00:01:48,060 --> 00:01:49,100 The permitted. 22 00:01:49,110 --> 00:01:50,100 There is no error. 23 00:01:55,660 --> 00:01:56,380 The exit. 24 00:01:56,410 --> 00:02:01,250 In the next video, we'll talk about dynamic versus static typing. 25 00:02:01,270 --> 00:02:02,260 I'll see you soon. 2097

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