Question: Get user input for num1 and num2. Write a Boolean expression that tests if the value stored in the variable num1 is equal to the

Get user input for num1 and num2. Write a Boolean expression that tests if the value stored in the variable num1 is equal to the value stored in the variable num2. Assign a value to the variables listed in this problem (time, maxTime, cost, and maxCost). Write a Boolean expression that tests if the value stored in the variable time is less than the value stored in the variable maxTime or if the value stored in the variable cost is less than the value stored in the variable maxCost Assign a value to weight and cost. Write a Boolean expression that tests if the value stored in weight is < 10 and the value store in cost is not greater than 20.00

num1 = int(input()) num2 = int(input()) ## add a line here to test and output if num1 is equal to num2 ## similar to the way this tests if num1 is greater than num2 ## print(num1 > num2)

time = int(input()) maxTime = int(input()) cost = int(input()) maxCost = int(input()) ## add a line here to test and output if the value stored in the ## variable time is less than the value stored in the variable maxTime ## or if the value stored in the variable cost is less than the value ## stored in the variable maxCost

weight = int(input()) cost = int(input()) ## add a line here to test and output if the value stored in weight ## is < 10 and the value store in cost is not greater than 20.00

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!