Skip to content

Collecting dat of students #23

@Calculuseuler

Description

@Calculuseuler

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}
""")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions