I'm a new user of Python and I have Python 2.7 on my windows laptop.
I just started to learn it and tried to right a one line program (for printing a name) and I got stuck. here is my code
- Code: Select all
I got this error:
SyntaxError: Non-ASCII character '\xff' in file a.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
I tried to add these to the first line but still I got the same problem:
# -*- coding: utf-8 -*-
I'm using notepadd++ as an editor.
It would be the most kind of you to help me with this case.
I'm impatiently waiting to hear from you.