A club entry rule needs both age and ticket to be valid. The operator to use is:
Aor
Bnot
Cin
Dand
Answer & Solution
Correct answer: D. and
1. Both conditions must hold at once.
2. One operator returns True only when both are true.
3. That operator is and.
_Source: OpenStax Introduction to Python Programming, Chapter 4._
Keep practising Booleans and Decisions
Browse all Booleans and Decisions questions for CS Olympiad, or explore more Computer Science topics.