For creating a string using integer appended to it, in a for loop we have a method which is str().
You can use the below-mentioned code:-
string = 'string' for i in range(11):
string +=`i`
print(string)
If you want to get string0, string1 ..... string10 you can use the following code:-
string = "string"
[string+`i` for i in range(11)]
If you are a Python 3 user then you can use the following code:-
string = 'string' for i in range(11):
string +=str(i)
print(string)
And for getting string0, string1 ..... string10 you can use the below-mentioned code:-
string = "string"
[string+str(i) for i in range(11)]