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