+ 1
What var does?
the question looked like this: for var __ list
1 Answer
+ 4
it just for iterating over a list (or over any other iterable object)
the syntax is:
lst=[1,2,3,4]
for var in lst:
print(var)
var is a just name for the iterator
you can use something else:
for x in lst:
print(x)