All language subtitles for 9. Python structures IF ELIF ELSE

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
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

Original subtitles

A1 and welcome in this new video in this video, we're going to talk about conditioner structure and

more precisely that if conditioner structure.

So it is a very simple structure because it's work like that, you are going to set a condition, a

logical operation.

And if this logical operation is true, then you will earn a piece of code.

For example, if the market is open, then I will learn my algorithm.

So it is very easy to create if structure.

So let me show you.

So you need to put the if operator then you logical operation that you want to test.

So five is lower than six, for example, then you need to put at double points to tell to Python that.

This is your logical oppression, and this is you, if true to you after this double point.

You keep a line.

And as you can see, there is a little space.

This space is named in the tension and this indentation 10 to python that also could weave the indentation

here is in the conditional structure.

If so, for example, if I put yes and I ruined, the five is lower than six.

So by then we'll print.

Yes, but if I change this test, for example,

this is natron because this test is false.

So it is the most easiest way to create a if structure.

But sometimes it, for example, here you want to know if this test is not true.

So to do it, you need to add another factor in your conditional structure to create a conditional structure.

If it's so if this look logical, operation is true, you run.

But otherwise, if you want to print something, you need to put the SCOPERTO the operator as no need

to.

Logical operation.

Why?

Because if this logical operation is false in all the other keys you were in there in the structure.

So.

If the logical operation is false, I want to print a note to tell that this logical operation is not

true.

Then we are going to see the condition and structure, if any, as this condition or structure is the

most complex structure with the if conditional structure, it will allow us to have moral condition

to verify, for example.

So I put that variable and then I will create more than one condition using that.

And if both after so.

I put my first condition, so as we have seen before.

So if X is greater or equal to 15, I will just print it.

But, for example, we can say that in all of the awful case, I want to say that X is lower than 15.

But sometimes we need to add another condition and to do it.

We use the and operator.

It means that if this condition is not verified before to when this good, we need to verify another

condition.

So for example,

now we are going to verify if

X is greater than that.

But it is really important to understand that this could eat e-tron's only if this condition are not

verified.

So it means that if.

Python, read this line INXS is lower than 15, and then we want to know if it is between 10 and 15.

Oh, if it is.

Lower or equal to 15, a 210, sorry.

So we are going to change the value of the X to see if our is correct.

So as we can see, we have correctly implement the conditional structure.

If it fails, I would invite you to play you with this because the if structure is very essential when

you walk on your own project.

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