Question: Write a program with two separate if statements: Create a variable called power that holds an integer. Assign an integer to this variable. Write one

Write a program with two separate if statements:
Create a variable called power that holds an integer. Assign an integer to this variable.
Write one if statement that displays the message Correct amount of power if the power is inside the range 10 through 350.
Write another if statement that displays the message Incorrect amount of power if the power is outside the range 10 through 350.
Do not use Python's range function for this exercise.
You will create 2 if statements following steps 2 and 3 above--not an if statement and an else statement.
Sample input / output:
Correct amount of power.
Sample input / output:
Incorrect amount of power.

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 Programming Questions!