python add number to string code example
Example 1: concatenate int to string python
string = 'string'
for i in range(11):
string +=str(i)
print string
Example 2: 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 3: how to add string with number in python
>>> print 'red' + str(3)
red3
>>>