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")

Answered by Nikesh P. Python tutor

1496 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

What is the difference between a float and an integer variable type?


How might we implement the bubble sort algorithm in Python


Give an example of a FOR loop


Sales is real Customers is integer startmainprog input Sales input Customers if ((Sales > 500) OR ((Sales > 300) AND (Customers>9))) then output “Bonus Awarded” else output “No Bonus” end if end subroutine. Sales = 600 Customers = 9, answer:


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences