livepython.net

29. Fix the print() Errors in a Receipt Header

MediumCommon errors

Overview

A shop wants a small header for its receipts, but the code has errors.

Problem Statement

Fix the starter code so it prints exactly:

==========
Sunny's Shop
Total: 25

Keep 25 as a number, without quotes.

Input

No input is required for this question.

Output

==========
Sunny's Shop
Total: 25

Learn this firstChapter 2 · Common print() Errors in Python and How to Fix Them
solution.py
print("==========")
print('Sunny's Shop')
print("Total:" 25)

EXPECTED OUTPUT

1==========
2Sunny's Shop
3Total: 25

YOUR OUTPUT

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