Skip to content

Commit 094ee9a

Browse files
authored
Update Day_23.md
1 parent 28823e0 commit 094ee9a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Status/Day_23.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@ arr.sort()
2828
print(arr[-2])
2929
```
3030
---------------------
31+
```python
32+
'''
33+
Solution by: mishrasunny-coder
34+
'''
35+
num = int(input("Enter num: "))
36+
L = []
37+
38+
while True:
39+
L.append(num)
40+
num = int(input("Enter another: "))
41+
if num == 0:
42+
break
43+
44+
L1 = list(set(L[:]))
45+
L2 = sorted(L1)
46+
print(L2)
47+
48+
print(f'The runner up is {L2[-2]}')
49+
```
50+
---------------------
3151

3252
# Question 96
3353

0 commit comments

Comments
 (0)