Write a Python program that asks the user to enter the ages of the three finishers. It uses the min() function to calculate and output the age of the youngest. Include in your HW PDF document a screen shot of your program code file and a screen shot of your output in IDLE when you run the program.

Respuesta :

Here's the python source code and the screenshot is the code.

# take the input for the age of three finishers

first =int(input("Enter the age of first finisher: "))

second= int(input("Enter the age of second finisher: "))

third= int(input("Enter the age of third finisher: ")

# using min function, to find the youngest finisher

youngest =min(first,second,third)

# print the age of the youngest finisher

print("Age of the youngest finisher is ",youngest)

-----------------------

Hope this helps, now you know the answer and how to do it. HAVE A BLESSED AND WONDERFUL DAY! As well as a great rest of Black History Month! :-)  

- Cutiepatutie ☺❀❤

Ver imagen Cutiepatutie