Problem Statement
Given a list of integers and a number k, find the kth largest integer in the list. The integer will be stored in the kth_max variable.
For example, with a list of 7 integers, if k = 2, then kth_max will be equal to the second-largest integer in the list. If k = 6, kth_max will equal the 6th largest integer.
Finding kth largest integer in a list
Coding Challenge
Take some time to figure out the smartest way to solve this problem. All the list methods and other data structures are available for use. The list being used is called test_list.
Write the code in terms of k. You do not need to worry about its value. Assign the answer to kth_max.
If you feel stuck, refer to the solution review in the next lesson.