livepython.net

28. Fix the print() Errors in a Greeting Program

EasyCommon errors

Overview

This program has two mistakes, so it doesn't run. Find them and fix them.

Problem Statement

The starter code should greet Sunny on two lines, but Python stops with an error. Fix the code so it prints exactly:

Hello, Sunny!
Welcome to LivePython

Fix the errors one at a time: run, read the error, fix that line, and run again.

Input

No input is required for this question.

Output

Hello, Sunny!
Welcome to LivePython

Learn this firstChapter 2 · Common print() Errors in Python and How to Fix Them
solution.py
Print("Hello, Sunny!")
print("Welcome to LivePython"

EXPECTED OUTPUT

1Hello, Sunny!
2Welcome to LivePython

YOUR OUTPUT

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