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
Answered by Nikesh P. Python tutor

1666 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

What is the difference between using range() and a list of values?


Print "Hello World!" ten times without typing (or pasting) the print function more than once


What's the difference between a local and a global variable?


How can you take a list of numbers and add 3 to every number in the list using only one line of code?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning