livepython.net

45. Fix a Python Program with a Comment Missing Its #

EasyComments

Overview

Notes without # are read as code, and Python stops.

Problem Statement

The starter code has two notes that are missing their #. Fix them so the program runs and prints:

Hello, Sunny!
Welcome back.

Input

No input is required for this question.

Output

Hello, Sunny!
Welcome back.

Learn this firstChapter 6 · Python Comments: Single-Line, Inline and Multi-Line
solution.py
Greet the user
print("Hello, Sunny!")
Say welcome
print("Welcome back.")

EXPECTED OUTPUT

1Hello, Sunny!
2Welcome back.

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.