C. 69 (on two separate lines)D. 69 (on the same line)
Missed opportunity for "Nice."
C. 69 (on two separate lines)D. 69 (on the same line)
Missed opportunity for "Nice."
Create code so that after x and y are defined, they are compared and if the value of x is less than y it sets the variable result to "x is less than y"; if x is greater than y then result is set to "x is greater than y"; and result is "x and y must be equal" if the values are equal.
This should also work right?
x = 10 y = 10
if x < y: result = "x is less than y" if x > y: result = "x is greater than y" else: result = "x and y must be equal"
Q-7: What is the total for 12 items that weigh 3 pounds?
There's a bunch of assumptions here. If the price is per item the total is 12.42. if the price is per pound the total is 37.26.
This question assumes price is per pound but also askes for the total price per item (instead of total?), when given prices are by pound, and discounts are per item?
Create code that sets var to the sentence “It takes us 165 minutes to get home from camp.”. Then append the sentence “165 minutes is also 2 hours and 45 minutes.” to the variable. The blocks have been mixed up and include extra blocks that aren’t correct.
The "correct" answer gives 'It takes us 165 minutes to get home from camp. 165 minutes is also 2 hours and 45.' instead of 'It takes us 165 minutes to get home from camp. 165 minutes is also 2 hours and 45 minutes.' so actually it is wrong and is missing '+ "minutes" '