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