Question
Python Exercise 9.2 ------------------------------ Place several Student objects into a list and shuffle it. Then run the sort method with this list and display all
Python Exercise 9.2
------------------------------
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.
Note: The sorted list should be 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 0 0
Hint: Use the print function with a Student object as an argument to print the Student object in the format specified above.
------------------------------------------------------------------------------------------------------------------------
So this is the code that I was given, and I tried multiple different ways and nothing worked. I got the shuffle to work, but the other tests failed. I attached the two errors that I was unable to do. Please help soon! Below the errors I couldn't beat is the code I was given.
The link to the indented code is here, please be sure to use that code I was given. The password to the link is 123456. Thanks!
https://www.protectedtext.com/code9.2
Programming Exercise 9.2 Tasks Test Case Incomplete Display sorted student information Input Output Sorted list of students: Name: Name1 Scores: Name: Name2 Scores:O0 0 0 00 0 0O Name: Name3 Scores:0 0 0 0 00 0 00 Name: Name4 Scores: Name: Name5 Scores: Results sorted list of students: Nane : Nane! Scores: Name: Nane2 Scores: Nane: Nane3 scores: Name: Nane4 Scores: Nane: Nane5 scores: Run Checks Submit % Programming Exercise 9.2 Tasks Test Case Incomplete Display sorted student information Input Output Sorted list of students: Name: Name1 Scores: Name: Name2 Scores:O0 0 0 00 0 0O Name: Name3 Scores:0 0 0 0 00 0 00 Name: Name4 Scores: Name: Name5 Scores: Results sorted list of students: Nane : Nane! Scores: Name: Nane2 Scores: Nane: Nane3 scores: Name: Nane4 Scores: Nane: Nane5 scores: Run Checks Submit %Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started