osx - "SyntaxError: Non-ASCII character" in running Python code -
I am starting with Python and when I use interpreter and run this code:
& gt; ; & Gt; Peliculus = ["Movie 1", "Movie 2", "Movie 3", "Movie 4"]> gt; & Gt; Print (Pelicus [1]) When I use the Piccard IDE it does not compile:
Peliculus = ["Movie 1", "Movie This output is:
file "/ user / 2/3", "movie 3", "movie 4"] print (pelikulus [1]) User / Picarc Project / Crooked / Pratt B2 "", Line 1 Syntax Error: Non-ASCII Characters '\ xc3' File / User / User / PycharmProjects / Untitled / Prueba2.py on line 1, but no encoding declares; What is wrong in Python? .. Do I set it up correctly?
This file is an encoding problem Try adding it to the beginning of the file:
# code = utf-8
Comments
Post a Comment