1The smallest possible number in python (not underflow to 0)
2is the smallest possible subnormal number.
3
4# L is the lowerbound exponent given by IEEE754 double precision.
5L_sub < (machine_epsilon * 2**L) = (2**-52) * (2**-1022) = 2**-1074
6
7Thus, smallest_number = 2*-1074 => 5e-324
1# creating empty list
2lis = []
3
4# user enters the number of elements to put in list
5count = int(input('How many numbers? '))
6
7# iterating till count to append all input elements in list
8for n in range(count):
9 number = int(input('Enter number: '))
10 lis.append(number)
11
12# displaying smallest element
13print("Smallest element of the list is :", min(lis))