Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 461 Bytes

File metadata and controls

11 lines (8 loc) · 461 Bytes

Given a list of integers, identify the third largest value in a list. The list is always going to contain at least 4 elements, and no element will repeat itself If the list is less than 4 elements, return “This list is too short”

For example:

  • Third_Largest([4, 9, 11, 5, 8])8
  • Third_Largest([10, 80, 35, 43, 57, 65])57
  • Third_Largest([-50, -51, -52, -53, 54, 550])-50

Hint: There is a function that sorts lists