loading
open in
main.py
1
2
3
4
5
6
7
8
9
# Find out the smallest and the largest from given numbers

numlist = []
n = int(input('How many numbers you want to enter ?: '))
for x in range(n):
    numbers = int(input('Enter a number '))
    numlist.append(numbers)
print("Largest number in this list is :", max(numlist), "\nSmallest number in this list is :", min(numlist))