CSE 110 | Programming Building Blocks

Instructor Solution

The following shows one way to solve this problem. It is not the only way this can be solved.

check01_instructor.py


"""
File: check01_instructor.py
Author: Brother Burton

Purpose: Display text to the screen.
"""

print('Hello World!')

# Please note that you can use either single quotes: 'Hello World!' or double
# quotes: "Hello World!" in your print statement and it will work just fine. It
# is completely a programmer preference.

# Lines that start with a "#" like this one are called "comments" and don't have
# code that actually runs. Instead, they allow us to make notes in our programs
# for other programmers to see.

"""
For large blocks of comments, we can start them with three "'s.
then we can type many lines of comments, and finish with three more "'s.
These are a special kind of comment that you'll learn more about later on.
"""