Hi Everyone,
I have a very simple python program, which includes a while loop. But to my
surprise, it cannot jump out the while loop. Does anyone know why?
Here is the program:
_______________ ____________
#!/usr/bin/env python
import sys
n=sys.argv[1]
i=0
while i<n:
print "i=",i," n=",n
i+=1
-----------------------------------------------------
Thanks in advance!
Jinming
_______________ _______________ _______________ _______________ _____[color=blue]
>From must-see cities to the best beaches, plan a getaway with the Spring[/color]
Travel Guide! http://special.msn.com/local/springtravel.armx
I have a very simple python program, which includes a while loop. But to my
surprise, it cannot jump out the while loop. Does anyone know why?
Here is the program:
_______________ ____________
#!/usr/bin/env python
import sys
n=sys.argv[1]
i=0
while i<n:
print "i=",i," n=",n
i+=1
-----------------------------------------------------
Thanks in advance!
Jinming
_______________ _______________ _______________ _______________ _____[color=blue]
>From must-see cities to the best beaches, plan a getaway with the Spring[/color]
Travel Guide! http://special.msn.com/local/springtravel.armx
Comment