Using for loop lists for open lists
for log in Python is very useful one very common thing to do in almost all programming languages.
When we use for lists it helps us to print each element from the list individually.
No we can use for for many different things in programming but this time we will we use for useful with
lists.
Let's see how first we go to bracket's
as you can see here we have on last hour.
OK.
So to print out each element from the list using for loop easily we just can't type for list in list
call and make sure all is Kabal.
OK.
Well we time here is four four means for loop list in list needs to call each element from the list
understory in the variable list which is the second list after that print to see what we did here.
So printing for the loop.
Make sure you have that in or just dump in the keyboard.
In this application brackets when you press enter GIFs that indent automatically Revenko type print
and strings such as.
I love my space plus list.
All right.
Save the file I'll see and turn.
Very good.
And it shows all the elements with the string that we enter.
Cool.
OK.
Now we went up and I think he was trying to print a string at the end which means it's out for Lou
try.
Wonderful as you can see here.
It's printed alone.
But if we put the indent before print look what it shows
its print.
Thank you.
Message with each element of the list.
All right.
Hopefully you get that.
Thanks for watching.