how to add numbers to string in python code example
Example 1: python add numbers to string
#convert your number to a string using the str() function and add it to your existing string
yourString + str(yourNumber)
Example 2: how to add string with number in python
>>> print 'red' + str(3)
red3
>>>