Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Experience the ease of finding reliable answers to your questions from a vast community of knowledgeable experts. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.
Sagot :
def comp_num (num1, num2, num3):
try:
if num1 > num2 and num1 > num3:
print ( "{0} is the biggest".format(num1) )
elif num2 > num1 and num2 > num3:
print ( "{0} is the biggest".format(num2))
elif num3 > num2 and num3 > num1:
print ( "{0} is the biggest".format(num3))
except ValueError:
return "Invalid input"
num_1 = int (input (" Please enter a number: "))
num_2 = int (input (" Please enter a second number: "))
num_3 = int (input (" Please enter a third number: "))
print (comp_num (num_1, num_2, num_3))
We appreciate your time. Please revisit us for more reliable answers to any questions you may have. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.