Probably a stupid newbie question....i got to ask

Courageous jkraska1 at san.rr.com
Thu Aug 9 06:33:48 CEST 2001


>How do you use string.atoi to convert a variable integer to a string?

You need to learn about the "coerce to string" operation:

>>> i = 3
>>> s = `i`
>>> s
'3'
>>> 

Note the backquotes.

C//




More information about the Python-list mailing list