One-Line Assignments
Python
15 pts
One-Line Assignments
Write two lines of assignment:
- In one line, create
name,ageandcitywith the values"Merhawi",15and"Massawa". - In one line, set
wins,drawsandlossesall to0.
The print() lines are already written. Expected output:
Merhawi 15 Massawa 0 0 0
Checklist
- In one line, create
name,ageandcitywith the given values. - In one line, set
wins,drawsandlossesall to0. - Run the program so the given
print()lines show both results.
🔑 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.
