I do not understand what is wrong

File “IDK”, line 24
petage = input('How old is ’ + petn + ‘?’ \n + petn + ’ is ') am I not supposed to have a closing parentheses
SyntaxError: unexpected character after line continuation character

Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘petage’ is not defined I am trying to define it with user input


Welcome to the forums :slight_smile:
Please see the notes here about formatting: [How to] Format code in posts - #7.

You may also want to share more code to have better context.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.