r/learnpython • • Jul 31 '22

Loops in python are weird

I recently started learning python programming. I also had some exposure to programming in my high school.

Today I studied loops but I found them a little bit weird...they do not have any initialisation, condition and increment like other languages like javascript.

It is very confusing to me PLEASE HELP!!

0 Upvotes

7 comments sorted by

View all comments

6

u/EddyBot Der-Eddy Jul 31 '22

When I started I felt the same but honestly nowadays the way Python does for loops (or other languages "foreach") is much more common to use that I don't feel that way anymore
it is so ridiculously simple and useful in Python and I wonder why it isn't more common across other programming languages