Practice: Escape Characters

« Read the chapter

Q21. Receipt layout

IntermediateApplication

Print two lines of a receipt using tabs: Tea then tab then 3, and Coffee then tab then 12.

Goal: Format text with escapes.

Q22. Quote a name

AdvancedApplication

Given name = "Asha", print: Name: "Asha" using an f-string and escapes.

Goal: Combine f-strings and escapes.