Question: Write code that sets the value of a variable named delicious to True if jellybeans is greater than 20, or licorice is greater than 30,
Write code that sets the value of a variable named delicious to True if jellybeans is greater than 20, or licorice is greater than 30, or their sum is greater than 40. Otherwise, set it to False. Do NOT use an if statement in your solution. Assume jellybeans and licorice already have values (code in Python).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
