All language subtitles for 21. Booleans

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
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 Download
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,580 --> 00:00:02,290 All right all right all right. 2 00:00:02,290 --> 00:00:08,920 So up until now we've spent for ever talking about numbers and strings and you're thinking oh God we 3 00:00:08,920 --> 00:00:12,040 have so many more to go through and my head hurts already. 4 00:00:12,040 --> 00:00:16,780 Well you know what I think you're going to really really like this one because this one's really really 5 00:00:16,780 --> 00:00:25,990 short and they're called billions and billions in Python is bull and bull. 6 00:00:26,280 --> 00:00:29,240 Well there's only two options. 7 00:00:29,450 --> 00:00:34,990 A bull can either be true or false. 8 00:00:35,150 --> 00:00:35,600 That's it. 9 00:00:36,140 --> 00:00:37,160 How awesome is that. 10 00:00:37,190 --> 00:00:44,820 You just learned billions so a billion I can assign to let's say my Facebook profile. 11 00:00:45,080 --> 00:00:56,800 I can say Andre or I can say name equals Andre and make sure that we form this into a string and then 12 00:00:56,860 --> 00:01:03,670 I can say bull let's say we're creating an even better social network than Facebook or creating our 13 00:01:03,670 --> 00:01:03,820 own. 14 00:01:04,270 --> 00:01:13,490 And this social network also has the is cool option on your user profile and let's say for now it's 15 00:01:13,610 --> 00:01:14,190 false. 16 00:01:14,320 --> 00:01:21,920 You see over here that's being highlighted now is cool is set to false but all of a sudden I'm thinking 17 00:01:22,250 --> 00:01:27,090 my profile doesn't look good if is cool is set to fall so I'm going to change that. 18 00:01:27,110 --> 00:01:30,930 I'm going to say is cool is now equal to true. 19 00:01:30,980 --> 00:01:35,980 Now my profile has been changed to is cool is true. 20 00:01:36,020 --> 00:01:38,760 Hurray and that's it. 21 00:01:39,980 --> 00:01:50,070 Billions represent this idea of true and false which in programming is kind of like saying 0 and 1 their 22 00:01:50,190 --> 00:01:52,150 logical values. 23 00:01:52,290 --> 00:01:52,830 Right. 24 00:01:52,850 --> 00:01:59,040 There is some logic that we can use and we'll see you when we talk about conditionals in upcoming videos 25 00:01:59,310 --> 00:02:06,450 where billions become really really useful because we can use billions to control the flow of our program 26 00:02:06,690 --> 00:02:07,870 to do something. 27 00:02:07,980 --> 00:02:16,680 If something is true to do another thing if something is false it's a cornerstone of computer science. 28 00:02:16,680 --> 00:02:24,450 And by the way a topic we're going to explore more and more is this idea of using billions to denote 29 00:02:24,720 --> 00:02:25,240 logic. 30 00:02:25,650 --> 00:02:34,380 So for example what do you think a bowl of one converting one two billion would do if I print this and 31 00:02:34,380 --> 00:02:47,500 I click Run I get true in boolean one means true a zero while that equals false and remember we're just 32 00:02:47,500 --> 00:02:54,940 simply converting this integer into a bowling value and a boolean well just either false or true nothing 33 00:02:54,940 --> 00:02:55,300 else. 34 00:02:55,330 --> 00:02:56,510 That's it. 35 00:02:56,510 --> 00:03:03,320 And I can also convert a string that says true into a bully and true. 36 00:03:03,320 --> 00:03:07,900 Again this is something we're going to explore a little bit more when we talk about conditional logic. 37 00:03:08,200 --> 00:03:14,630 But I wanted to make this video nice and short to let you know that hey not all these data types are 38 00:03:14,630 --> 00:03:17,900 as complex as well numbers and strings. 39 00:03:17,900 --> 00:03:18,440 All right. 40 00:03:18,440 --> 00:03:19,290 Nice and short. 41 00:03:19,310 --> 00:03:20,790 I'll see in the next one. 42 00:03:20,840 --> 00:03:21,110 Bye bye. 4035

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