Re: How to convert a string into an integer

2007-01-22 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > Can you please tell me why the following code does not work in python? > My guess is I need to convert 'count' from a string to an integer. How > can I do that? > And my understanding is python is a dynamic type language, should > python convert it for me automatically?

Re: How to convert a string into an integer

2007-01-22 Thread Tobiah
> count = sys.argv[2] > for i in range(count): > #do some stuff for i in range(int(count)): -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list

How to convert a string into an integer

2007-01-22 Thread [EMAIL PROTECTED]
Can you please tell me why the following code does not work in python? My guess is I need to convert 'count' from a string to an integer. How can I do that? And my understanding is python is a dynamic type language, should python convert it for me automatically? count = sys.argv[2] for i in range(