smallest number in python code example
Example 1: smallest possible number in python
The smallest possible number in python (not underflow to 0)
is the smallest possible subnormal number.
L_sub < (machine_epsilon * 2**L) = (2**-52) * (2**-1022) = 2**-1074
Thus, smallest_number = 2*-1074 => 5e-324
Example 2: how to print smallest number in python
lis = []
count = int(input('How many numbers? '))
for n in range(count):
number = int(input('Enter number: '))
lis.append(number)
print("Smallest element of the list is :", min(lis))
Example 3: python find smallest value in list
stuff = [37, 7, 19, 29, 5, 13, 31, 17, 23, 11, 3, 2]
print(min(stuff))