-
Notifications
You must be signed in to change notification settings - Fork 451
Open
Description
A student fills a form with their details.
We ask for: name, registration number, department, faculty,
course of study, level, programme of study, state of residence, and nationality.
Then, we display the information in a formatted manner.
Collecting user input
name = input("What is your name? ")
reg_number = input("What is your registration number? ")
department = input("What is your department? ")
faculty = input("What is your faculty? ")
course = input("What is your course of study? ")
level = input("What is your current level of study? ")
programme = input("What is your programme of study? ")
state = input("What is your state of residence? ")
nationality = input("What is your nationality? ")
Displaying the collected information in a formatted form
print("\nThank you! Here are the details you provided:\n")
print(f"""
Name: {name}
Registration Number: {reg_number}
Department: {department}
Faculty: {faculty}
Course of Study: {course}
Level: {level}
Programme of Study: {programme}
State of Residence: {state}
Nationality: {nationality}
""")
Calculuseuler
Metadata
Metadata
Assignees
Labels
No labels