Convert and Add
Python
15 pts
Convert and Add
Two prices arrived as text: a = "10" and b = "5".
- Create
total, the number sum ofaandb(it should be15). - Create
message="Total: "joined withtotal. - Print
total, thenmessage.
Expected output:
15 Total: 15
Checklist
- Keep
aandbunchanged and createtotal, the number sum of both (15). - Create
message="Total: 15"usingstr(total). - Print
total, thenmessage.
🔑 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.
