python-basics icon indicating copy to clipboard operation
python-basics copied to clipboard

Collecting dat of students

Open Calculuseuler opened this issue 4 months ago • 0 comments

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 avatar Aug 07 '25 09:08 Calculuseuler