Write a basic program to output the lowest of 3 input numbers. (You may omit error checks on your inputs)

num1 = int(input("Please enter your first number: "))num2 = int(input("Please enter your second number: "))num3 = int(input("Please enter your final number: "))if num1 < num2 and num1 < num3:  print(num1 , " is the lowest number")elif num2 < num3 and num2 < num1:  print(num2 , " is the lowest number")else:  print(num3 , " is the lowest number")

NP

Related Python Mentoring answers

All answers ▸

Give an example of a FOR loop


Write a simple number guessing game, give the user 3 tries to guess a number between 1 and 10


Write a program that takes a value x and then outputs x Fibonnaci numbers. E.g. if x=6 output would be 1 1 2 3 5 8


What are the main data structures that I can use in Python