hAcKnRoCk
hAcKnRoCk

Reputation: 1166

My python interpreter does not recognize strings

Newbie disclaimer: I am new to Python and just started using IDLE to play around with Python.

My problem is the interpreter does not recognize strings, whether enclosed in ¨¨ or ´´.

I configured IDLE to use UTF-8. but it does not seem to be an IDLE issue. What I tried is to test this string in the interpreter directly. It does not work.

print ¨Money¨

to the interpereter returns

File "<stdin>", line 1 print ¨Money¨ ^ SyntaxError: invalid syntax

Can someone help me with this? I am using a new laptop running fedora15 with the international keyboard layout and python version is 2.7.1.

Upvotes: 3

Views: 3003

Answers (2)

Juan Manuel
Juan Manuel

Reputation: 1

Just switch your keyboard setting between normal US English for coding, and US English International for texting, that worked for me.

Upvotes: 0

wRAR
wRAR

Reputation: 25693

You need to use "" or '', not ¨¨, ´´ or any other fancy characters.

Upvotes: 7

Related Questions