145k views
4 votes
Can anybody explain for loop in python


User Hering
by
6.1k points

1 Answer

1 vote

Answer:

Python for loops – two simple examples

First things first: for loops are for iterating through “iterables”. Don't get confused by the new term: most of the time these “iterables” will be well-known data types: lists, strings or dictionaries. ... Let's take the simplest example first: a list!

Step-by-step explanation:

User Shahla
by
6.0k points