python program to take age as input of 4 people by user and determine oldest and youngest among them.
Added by Alfonso M.
Step 1
We can use the input() function in Python for this purpose. Show more…
Show all steps
Your feedback will help us improve your experience
Babita Kumari and 98 other ACT educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a Python program to calculate a dog's age in dog's years. Note: For the first two years, a dog year is equal to 10.5 human years. After that, each dog year equals 4 human years. How old is my dog in human years? Size of dog Small (9 kilos or less) Medium (from 9 - 23 kilos) Large (more than 23 kilos) Age of dog Age in human years Exercises: a) Write an algorithm and a program to compute the dogs age in dogs years. b) Write all possible test cases
Samuel G.
(This needs to be coded using Python) Write and test a program that accepts the user’s name (as text) and age (as a number) as input. The program should output a sentence containing the user’s name and age. An example of the program input and output is shown below:Enter your name: Alex Enter your age: 23 Alex is 23 years old.
Shelayah R.
Write a python program that asks the user how many credits they have taken. If they have taken 23 or less, print that the student is a freshman. If they have taken between 24 and 53, print that they are a sophomore. The range for juniors is 54 to 83, and for seniors it is 84 and over
Cora M.
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD