Computer Science, asked by gpret4440, 1 year ago

Why python for loops don't default to one iteration for single objects?

Answers

Answered by MemonMahin07
0

Python For Loops. 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 language, and works more like an iterator method as found in other object-orientated programming languages.

Similar questions