Why cannot jump out the loop?

Jinming Xu cybermanxu at hotmail.com
Thu Apr 29 22:21:41 EDT 2004


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

_________________________________________________________________
>From must-see cities to the best beaches, plan a getaway with the Spring 
Travel Guide! http://special.msn.com/local/springtravel.armx





More information about the Python-list mailing list