✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A booking should be accepted only when:
A student writes:
people = 9
paid = False
if people >= 2 or people <= 6 and paid:
print("Accepted")
else:
print("Rejected")
In Python, and is evaluated before or, so the condition is equivalent to:
people >= 2 or (people <= 6 and paid)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!