Question: Python: length _ time is read from input. Write multiple if statements: If length _ time is greater than 2 5 , then output 'I

Python: length_time is read from input. Write multiple if statements:
If length_time is greater than 25, then output 'I can finish half of my homework.'
If length_time is greater than 33, then output 'I can complete my homework.'
If length_time is less than or equal to 4, then output 'I do not have time to do my homework.'
Ex 1: If the input is 27, then the output is:
I can finish half of my homework.
Ex 2: If the input is 37, then the output is:
I can finish half of my homework.
I can complete my homework.
Ex 3: If the input is 1, then the output is:
I do not have time to do my homework.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!