Creating a profile for a student in Python

Report a typo

You need to generate a profile for a student which includes her name, age, and city of origin. Your task is to fill the blanks in the code so that when it is executed, it outputs Name: Alice, Age: 20, City: Sydney line.

Fill in the gaps with the relevant elements
 = "Alice"
 = 20
 = "Sydney"
student_profile = "Name: " + student_name + ", Age: " + str(student_age) + ", City: " + city_of_origin
print(student_profile)
student_agestudent_namecity_of_origin

Create a free account to access the full topic