Python - For Loop
Why does this code print only the last value of the list?
values = [1, 2, 3]
for v in values:
pass
print(v)values = [1, 2, 3]
for v in values:
pass
print(v)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions