Challenge: Use a Generator to Find the Max Score for a Student

Write a function that uses a generator to find the maximum score a student obtains.

Write code inside a function that uses a generator to determine the maximum score a student obtained and the student’s name from tuples of multiple students.

  • Input: A list lst that contains tuples of multiple students.
  • Output: The function will return the name and score of the student who has the maximum score.

Get hands-on with 1400+ tech skills courses.