I'm learning python, I want to check if the second largest number is duplicated in a list. I've tried several ways, but I couldn't. Also, I have searched on google for this issue, I have got several answers to get/print 2nd largest number from a list but I couldn't find any answer to check if the 2nd largest number is duplicated. can anyone help me, please?
Here is my sample list:
list1 = [5, 6, 9, 9, 11]
list2 = [8, 9, 13, 14, 14]