Python: Find the second largest number in a list
Find Second Largest Number in List
Write a Python program to find the second largest number in a list.
Example - 1 :

Example - 2 :

Example - 3 :

Example - 4 :

Sample Solution:
Python Code:
Sample Output:
3 1 None None
Flowchart:

For more Practice: Solve these Related Problems:
- Write a Python program to find the third largest number in a list.
- Write a Python program to find the second largest number in a list without sorting.
- Write a Python program to find the second largest unique number in a list.
- Write a Python program to find the second largest number in a list using a single pass.
Go to:
Previous: Write a Python program to find the second smallest number in a list.
Next: Write a Python program to get unique values from a list.
Python Code Editor:
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.