SyntaxFix
Write A Post
Hire A Developer
Questions
use defalut sort() method to get second largest number in the list. sort is in built method you do not need to import module for this.
lis = [11,52,63,85,14] lis.sort() print(lis[len(lis)-2])