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
Step: 1
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