Question #611

What is the output od the code snippet below?
a = [1, 2, 3, 4, 5]
for a in a:
    print(a)

In Python, loop indexes identifiers can have the same name as the iterable making up the list. (w3schools.com/python/python_for_loops.asp)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵