Format a Payment Message
Python
15 pts
Format a Payment Message
Using an f-string, create a variable message that uses name and total to make this exact text, with the total shown with 2 decimal places:
Hello Selam, you owe 152.50 Nakfa
Then print message.
Checklist
- Keep
nameandtotalunchanged and createmessagewith an f-string, showing the total with 2 decimal places. - Print
message.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
