Python Forum

Full Version: Need help XE1 SyntaxError
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
guys i need help the code saying error like this:
Error:
SyntaxError: Non-ASCII character '\xe1' in file
currentMonth =int(input("შეიყვანეთ მიმდინარე თვე: "))
newYear = 12
print("ახალ წლამდე დარჩენილია " + str(newYear-currentMonth) + " თვე")
  
I am unable to replicate your error in Python 3.7.3. The code works.

Try adding at the top:
#!/usr/bin/python
# -*- coding: utf-8 -*-
More info in this PEP:
https://www.python.org/dev/peps/pep-0263/