I am a beginner coding in python. I have problem with running the python script.
When ever i import the module "random " and try to run the program it doesn't wait for the user to exit the program inspite of raw_input command.
I tried to debug and the out put looks fine in IDLE(GUI).
Not sure what is going wrong. Can some one help?
Here is the program am trying to run
- Code: Select all
while count < 100:
count += 1
if flip == 1:
heads += 1
if flip == 2:
tails += 1
print "no of heads:"
raw_input("press any key to exit")
it works fine in GUI. But doesn't run when i directly try to run the code (by double clicking)
Any help will be appreciated