Hi everyone... I litterally just started python and did the following 'hello
world' related tutorial.

http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro
<http://hkn.eecs.berkeley.edu/%7Edyoo/python/idle_intro>

Being the kind of person who like to experiment, I tried changing the
following script from:

print "Hello World!"
print "Here are the ten numbers from 0 to 9, just in case you can't count."
for i in range(10):
    print i,

print "I'm done!"

to:

print "Hello World!"
print "Here are the ten numbers from 0 to 9, just in case you can't count."
for i in range(10000000):
    print i,

print "I'm done!


Now I am stuck staring at IDLE as it prints out all 10million numbers.....
Is there a way other than closing the shell to stop a script midway through
execution?

-Ian
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to