0
a=int(input('Enter the number:')) i=0 while i<=a: print(i) i=i+1 print("Finished!")
Why am i getting error in this?
2 Réponses
+ 6
Aaron, you are absolutely right - issue is indentation. should look like this:
a=int(input('Enter the number:'))
i=0
while i<=a:
print(i)
i=i+1
print("Finished!")
+ 2
I guess this is Python so it might be because you indented the code inside the loop incorrectly