Where is error in Python?

Here is the code
name= input ("How old are you?")
print("You" , name)
Error
$python main.py
File "main.py", line 2
SyntaxError: Non-ASCII character '\xd0' in file main.py on line 2, but no encoding declared; see python.org/dev/peps/pep-0263 for details
March 19th 20 at 08:37
1 answer
March 19th 20 at 08:39
Solution
Error to use Python2.

If you really really want to use obsolete 10 years ago version, or do not use in code symbols outside the ASCII range, or to indicate to the interpreter the encoding code by inserting in the first line # -*- coding: utf-8 -*- of Course, making sure that the script's encoding is indeed UTF-8.

Find more questions by tags Python