[Tutor] Conditional Statement without if statement?

Barrett Ferguson barrettf50cal at gmail.com
Mon Feb 7 22:20:43 EST 2022


Hello,

 I have an assignment which asks me to create an if statement without using if, pls help. :)
I have attached the complete 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, 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.


More information about the Tutor mailing list