Could Word's smart quotes be breaking the Python example in my handout?
TechnologyThe short Python example runs when I copy it from the original text file. After I retype it in our Word handout and copy it back, Python rejects the line. The quotation marks look curved in the handout and straight in the working file.
Word can replace straight quotation marks with smart quotes. Python's string syntax uses its specified single or double quote delimiters. Microsoft's smart-quote guidance, Python's string-literal reference
Should I change the document settings, distribute a separate code file, or both? This is for beginners, and I don't want the first exercise to depend on noticing a tiny typographic change.