for loops in python require either iterable or iterator object.as such the following two for loops produce the same result.
list = [1,2,3,4,5,6,7,8,9]
for i in iter(list):
print(i)
print(end = "\n")
for i in list:
print(i)
both the for loops prints out 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 my question is why we have these two forms ? why don't we use the second form only( directly iterating over the iterable than creating iterator from it and iterating )?