Chapter 6: Problem 23
The purpose of this exercise is to tell you how hard it may be to write Python programs in the standard programs that most people use for writing text. Type the following one-line program in either Microsoft Word or OpenOffice: $$ \text { print "Hello, World!" } $$ Both Word and OpenOffice are so "smart" that they automatically edit "print" to "Print" since a sentence should always start with a capital. This is just an example that word processors are made for writing documents, not computer programs. Save the program as a .doc (Word) or .odt (OpenOffice) file. Now try to run this file as a Python program. You will get a message SyntaxError: Non-ASCII character Explain why you get this error. Then save the program as a .txt file. Run this file as a Python program. It may work well if you wrote the program text in Microsoft Word, but with OpenOffice there may still be strange characters in the file. Use a text editor to view the exact contents of the file. Name of program file: office.py.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.