Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help XE1 SyntaxError
#1
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) + " თვე")
  
Reply
#2
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/
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020