I need help here I wrote code for my lab that “The loop will iterate a total of 10 times using the value of a variable that is incremented by one each time the loop completes.”strong text but when I run my python file by click just open it refuse to run in command prompt…When I test in Edit with IDLE it runs fine…I can’t figure out why it wont run…
here is what I wrote for my code:
counter = 0
while counter < 10:
counter = counter + 1
print counter
print "the loop is finished"
Perhaps it’s just done way too fast.
Have you tried adding a
raw_input()at the bottom of the file?