Three Ways to Print
Python
15 pts
Three Ways to Print
Use the given variables to print these three lines:
- With commas:
Selam lives in Asmara - With + and
str():Selam is 16 years old - With
sep="/":29/11/2026(use the variablesday,monthandyear)
Do not change the variables. Expected output:
Selam lives in Asmara Selam is 16 years old 29/11/2026
Checklist
- Keep all six given variables unchanged, including
ageas a number. - Print the three lines: one with commas, one with
+andstr(), and one withsep="/".
🔑 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.
