What is the error in this program?

learn Python and I have an error-"unexpected character after line continuation character" please help
a=int(input("enter a"))
b=int(input("enter b"))
c=a+b
print("summ"+c)

the text of the error-"SyntaxError: unexpected character after line continuation character"
April 7th 20 at 15:34
1 answer
April 7th 20 at 15:36
Solution
You can't concatenate the string "summ" and the number c.
Solution:

Just printed together, not concatenate
print("summ", c)

Translating variable c into a string and concatenate to 'summ'
print("summ" + str(c))

Using format()
print("summ {}").format(c)

Through format, you can add a lot of variables
print("summ {} {} {}").format(c, a, b)

Find more questions by tags IT educationPython