Agregar variable de cadena con Integer Python
string = 'string'
for i in range(11):
string += 'i'
print string
# It will print string 012345678910.
Vishal
string = 'string'
for i in range(11):
string += 'i'
print string
# It will print string 012345678910.
#by chaing it's type using str() function
# We have a string and a integer
string1 = "superman"
num1 = 20
# concatenated string
concatString = string1 + str(num1)
print(concatString)
string = 'string' for i in range(11): string +=str(i) print string