a = int(input('Enter first number : '))
b = int(input('Enter second number : '))
c = int(input('Enter third number : '))
smallest = 0
if a < b and a < c :
smallest = a
if b < a and b < c :
smallest = b
if c < a and c < b :
smallest = c
print(smallest, "is the smallest of three numbers.")
# creating empty list
lis = []
# user enters the number of elements to put in list
count = int(input('How many numbers? '))
# iterating till count to append all input elements in list
for n in range(count):
number = int(input('Enter number: '))
lis.append(number)
# displaying smallest element
print("Smallest element of the list is :", min(lis))
The smallest possible number in python (not underflow to 0)
is the smallest possible subnormal number.
# L is the lowerbound exponent given by IEEE754 double precision.
L_sub < (machine_epsilon * 2**L) = (2**-52) * (2**-1022) = 2**-1074
Thus, smallest_number = 2*-1074 => 5e-324