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)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment