+ 1
Why for loop function print list 3 times?
a= ["hello",77,99] for element in a : print (a) instead of printing element i print a and python printed that list 3 times .
2 Respuestas
+ 3
a = [1,2,3]
for var in a:
print(var)
#not print(a)
+ 2
what about print(a) ,could you explain it bit more. glad you replied