Skip to content

Commit bb9c3a6

Browse files
author
avinash
committed
Laragest and Smallest number in a list.
1 parent 6649f34 commit bb9c3a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

largest_smallest_list.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
lst = []
2+
num = int(input('How many numbers: '))
3+
4+
for n in range(num):
5+
numbers = int(input('Enter number '))
6+
lst.append(numbers)
7+
8+
print("Maximum element in the list is :", max(lst), "\nMinimum element in the list is :", min(lst))

0 commit comments

Comments
 (0)