for i in range(1, 10):
a =10
print(a)
It is giving me the output: 10
Expected output: Name is not defined
Can anyone please explain?
for i in range(1, 10):
a =10
print(a)
It is giving me the output: 10
Expected output: Name is not defined
Can anyone please explain?