Skip to content

Commit eb3e469

Browse files
authored
Update Day_23.md
1 parent 3f08896 commit eb3e469

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Status/Day_23.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ print(L2)
5757
print(f'The runner up is {L2[-2]}')
5858
```
5959

60+
---
61+
```python
62+
'''Solution by: KailashS3
63+
'''
64+
num = int(input())
65+
scores = list(map(int, input().split(' ')))
66+
winner = max(scores)
67+
lst = []
68+
69+
if len(scores) != num:
70+
print('length of score is greater than input given')
71+
else:
72+
for score in scores:
73+
if winner > score:
74+
lst.append(score)
75+
76+
runnerup = max(lst)
77+
print(runnerup)
78+
```
6079
---
6180

6281
# Question 96

0 commit comments

Comments
 (0)