0
On the course
I notice in the beginning they use (' ') for Python 3. I've started with Python 3 and had many errors. But even in Python 3 as well as Python 2.6 it's typed (" "). Why the difference in the lesson??
3 Answers
+ 3
The apostrophe ' and quotation mark " are eqivalent in Python, they both should work equally, as long as you use them consistently. Your errors must have another cause.
+ 3
Python uses single quotes internally.
print(repr(chr(85))) # 'U'
+ 3
You can use them to output the other character:
print ("This is an apostrophe: '")
print ('This is a quotation mark: "')