Friday, January 18, 2008

Converting a number to a string

To convert a number to a string, simply use the function str().

So if you have a variable called intZipCode and you want to convert it from an integer to a string and store it as strZipCode, the command is as follows:

strZipCode = str(intZipCode)

No comments: