More User Input of Data

Ask the user for several pieces of information, and display them on the screen afterward as a summary.

  • first name

  • last name

  • grade

  • student id number

  • login name

  • average (0.0 to 100.0)

You must use the most appropriate type for each variable and not just strings for everything.

The spacing of the output text isn’t terribly important, but please do get all user input on the same line as the prompt.

Name the file:

more_user_input.py

Please enter the following information so I can sell it for a profit!

First name: Helena
Last name: Bonham-Carter
Grade (9-12): 12
Student ID: 453916
Login: bonham_453916
Average: 75.0

Your information:
	Login:     bonham_453916 
	ID:        453916 
	Name:      Bonham-Carter, Helena 
	Average:   75.0 %
	Grade:     12 

©2021 Daniel Gallo

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.

Creative Commons License

Adapted for Python from Graham Mitchell’s Programming By Doing