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

1171 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Write a Python script to take a product name as input and then automatically google search reviews for it and open the top 3 search results in different tabs


Explain how you would write a python program that takes a rectangle and a point in a 2D space as command-line arguments and checks if they intersect.


Write a function that takes the input of two numbers, and outputs the greater value.


What are recursive functions and when should they be used?


We're here to help

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

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy