Computer Science, asked by guptadipti420, 8 months ago

19. Explain the for loop in Python in detail ​

Answers

Answered by risingstar88
1

Answer:

A 'for loop' is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string)With the for loop we can execute a set of statements, once for each item in a list, tuple, set etc....

Answered by koonergavan
1

Loop in python :

A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string). This is less like the for keyword in other programming languages, and works more like an iterator method as found in other object-orientated programming languages.

Similar questions