We can use the shuffle function from the random module in Python for this.
Second, we need to sort the list. Since we have already defined the "__lt__", "__ge__" and "__eq__" methods in the Student class, we can use the built-in sort function in Python to sort
Show more…