06 Feb Aurora Saturday/Tuesday Python Homework L1-04
Mike, Cindy and Terry went to the orchard to pick apples. After a whole day of work, everyone picked a lot of apples. Please write a program ask how many apples each person has picked, then print the total apples all three of them have picked.
There are 904 apples in total
You could use m = int(input(‘Mike: ‘)) to ask question. The answer you give to the question as a value will be assigned to the variable m.
The scientists just created a spaceship for travelling between planets. You could use the formula distance = speed * time to calculate the distance the spaceship can travel during a period of time. Write a program ask user the speed(km/hour) and travel time(hour) to display the distance the spaceship have traveled.
Sample Input 1:
What is the speed: 40000
How many hours: 2
Sample Output 1:
The spaceship has traveled 80000 km in 2 hours
Sample Input 2:
What is the speed: 30000
How many hours: 12
Sample Output 2:
The spaceship has traveled 360000 km in 12 hours