Question: ( Phyton problem ) When the input variable num _ passengers is: greater than or equal to 1 5 , output 'Too many passengers'. between

(Phyton problem) When the input variable num_passengers is:
greater than or equal to 15, output 'Too many passengers'.
between 7 inclusive and 15 exclusive, output 'Mid-sized van'.
between 0 exclusive and 6 inclusive, output 'Compact van'.
less than or equal to 0, output 'Bad input'.
Click here for examples
Ex 1: If the input is 16, then the output is:
Too many passengers
Ex 2: If the input is 8, then the output is:
Mid-sized van
Ex 3: If the input is 1, then the output is:
Compact van
Ex 4: If the input is -2, then the output is:
Bad input

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!