Python For Loop & One Liner

preview_player
Показать описание
In general, statements are executed sequentially: The first statement execute first, followed by the second, and so on. There may be a situation when you need to execute a block of code several number of times. A loop statement allows us to execute a statement or group of statements multiple times.

The "for" loop is used to iterate over elements of a sequence, it is often used when you have a piece of code which you want to repeat "n" number of times.

You could find this tutorial’s code and presentation in the below given path.

Рекомендации по теме
Комментарии
Автор

you got my sub, that one liner you showed is super helpful.

gingercholo
Автор

Bro your audio is so clear. Whats your set up?

dummypg
Автор

what shocks me is i find the one liners easier to read than the standard code structures. I think they should be teaching one liners as standard instead of preserving them for "python experts"

chvrleshd
Автор

If I use the for loop, everything is printed in different lines, can I print it in the same line?

bondabhaigaming
Автор

I wanna know if i can use one liner loop except using in list

skmujahidkabir