I have an integer and I have a string. Now I want to create a new string which is got by concatenated the string and the integer. But I don’t understand how to do this?
I am using this following code:
a = 10
new = “hello” + a
But I get this error:
File "program.py", line 2,
new = “hello” + a
TypeError: Can't convert 'int' object to str implicitly