Describe a Student
Python
15 pts
Describe a Student
Define a function describe_student(name, age, city) that prints one sentence in exactly this form:
Selam is 16 years old and lives in Asmara.
Then call it with the arguments "Selam", 16 and "Asmara". The checker will also call your function with other students, and with keyword arguments, so use the three parameters — do not type the values into the sentence.
Expected output:
Selam is 16 years old and lives in Asmara.
Checklist
- Define
describe_studentwith three parameters calledname,ageandcity. - Inside the function, print the sentence using the three parameters, not fixed text.
- Call the function with
"Selam",16and"Asmara".
🔑 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.
