For this Question: Write a program to find the second largest number in a list.The first line contains the list elements separated by a space.

Constraints:
-100000<=element<=100000
len(list)<=100Prints "Second Largest element is: x".Sample Input:
1 2 3 4

Sample Output:
Second Largest element is: 3, I have written this Solution Code: list1 =  list(map(int,input().strip().split()))

# sorting the list
list1.sort()
length = len(list1)
print("Second Largest element is:", list1[length-2])
, In this Programming Language: Python, Now tell me if this Code is compilable or not?