Write a program to find and print the smallest among three numbers


Topic: Write a program to find and print the smallest among three numbers

Solution

num1 = 10
num2 = 12
num3 = 14
if (num1 <= num2) and (num1 <= num3):
   smallest = num1
elif (num2 <= num1) and (num2 <= num3):
   smallest = num2
else:
   smallest = num3
print(f'smallest:{smallest}')



List all Python Programs