I want to create string using integer appended to it, in a for loop. Like this:
for i in range(1,11):
string="string"+i
But it returns an error:
TypeError: unsupported operand type(s) for +: 'int' and 'str'
What's the best way to concatenate the String and Integer?
t it be
range(1,10)`? - stephanstring = "string10"
?string = "string1string2string3string4string5string6string7string8string9string10"
? Ten different variables? - badprange(1,11)
:) - Tim Pietzckerrange(11)
looking at the comment... - stephan