Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using a single one-way decision structure (i.e., an if structure with no else part), some relational operators and some logical operators (i.e., and, or,
Using a single one-way decision structure (i.e., an if structure with no else part), some relational operators and some logical operators (i.e., and, or, not) as needed, write a Python program that obtains the weight of a box as input and prints The box is pretty heavy. if the weight of the box is greater than or equal to 70.0, or prints The box is pretty not too heavy. For example, the input prompts, input (shown in bold blue) and corresponding output from the program could be as follows: Enter the weight of the box: 70 The box is pretty heavy. Another example: Enter the weight of the box: 69.9 The box is pretty not too heavy.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Here is a Python program that takes the weight of a box as input and prin...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started