Related questions
How to concatenate items in a list to a single string?
Is there a simpler way to concatenate string items in a list into a single string? Can I use the str.join() function?
E.g. this is the input ['this','is','a','sentence'] and this is the desired output this-is-a-sentence
…
Python String and Integer concatenation
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 …