Using Python This project assumes that you have completed Project 1. Place several Student objects into a list and shuffle it. Then run the sort method with this list and display all of the students’ information. Print to the console the unsorted list first of all students followed by the sorted list of all students Note: The sorted list should output in the following format: Sorted list of students: Name: Name1 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name2 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name3 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name4 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name5 Scores: 0 0 0 0 0 0 0 0 Hint: Use the print function with a Student object as an argument to print the Student object in the format specified above. Use sort list method to sort list utput unsorted and sorted list to the terminal Make sure to display the unsorted student information first and follow the template shown in the instructions. If the output format does not match the template provided, the test may return incorrect results for your program. Display the sorted student information
Using Python
This project assumes that you have completed Project 1. Place several Student objects into a list and shuffle it. Then run the sort method with this list and display all of the students’ information. Print to the console the unsorted list first of all students followed by the sorted list of all students
Note: The sorted list should output in the following format:
Sorted list of students: Name: Name1 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name2 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name3 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name4 Scores: 0 0 0 0 0 0 0 0 0 0 Name: Name5 Scores: 0 0 0 0 0 0 0 0
Hint: Use the print function with a Student object as an argument to print the Student object in the format specified above.
Use sort list method to sort list
utput unsorted and sorted list to the terminal
Make sure to display the unsorted student information first and follow the template shown in the instructions. If the output format does not match the template provided, the test may return incorrect results for your program.
Display the sorted student information
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images