All language subtitles for 10. Python structures FOR

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

Aaron and welcome in this new video in this video we're going to talk about the loop for the loop for

is very useful in Python and you really need to master it because it will allow us to iterate something

on a list or a sequence or dataframe.

It will really allow us to iterate something on a lot of objects.

So it's very necessary to master it.

For example, if a quit lists name sequence.

And I want to create a loop for just to print each element of the list one by one I will use as a full

operator.

Then you need to put the name of the new variable.

So as you want, for example, you can put it in, but you put what you want.

You just need to understand that this virtual item will represent one by one, each element of this

sequence.

So for item in sequence.

So because we need to tell Python in which object you want to take the item, then you put a double

point.

You go to the line and there is also an indentation because you need to tell to Python.

That's the following year is for the loophole and notes in the normal code.

So you put a prince or item.

It is a really simple example, but in the loophole you can put pretty that you want.

So for example, if you want to do the scrap of each eye, then you can do it like this.

So as you can see, it's very powerful to master the loophole.

So it's essential to muster it to work in algorithmic trading.

Now let me show you how to do a loop in a range of data.

So for item in and then we are going to use the ring function.

The winch function will allow us to

take all the integral number from zero to here six, for example.

So if a print item, you can see that you have zero one two three four five.

But if you want to begin, for example, two six, you can do it.

Just turning to Python that we begin from six to 10.

So it is really easy to use, and it is the most common way to use a for loop.

And there exists another way to create a loop, but a little bit more complex, but it's at least necessary

to know that this way exists because it is a way to simplify your code.

And sometimes when you work with a lot of good, it is very some trick like this to have less good to

work with it.

So we are going to see how to create a loop in a list.

So to do it, you need to put first.

What we are going to do in the lists this spot and then you need to put four item in range.

Then, Hugh, it's very important to understand that we don't need to put the double point because we

need to write this in only one line.

So Python has no need to seek the double plain because this syntax is written only in one line.

So if I learned if I runs a could, you can see that I have exactly the same thing as before, except

that here we need to begin at one.

Again, I will only advise you to work with the loophole in your way to weeding Must-Reads.

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