Beginner
Can they enter?
A hall lets a person in if they are at least 18 and they either have a ticket or are a member.
Set can_enter to True or False using the variables age, has_ticket and is_member (do not type True or False yourself). Then the last line prints Can enter: True for these values.
What Check tests
can_enterisTruecan_enteris a real bool- The program uses
andandor - The program prints
Can enter: True
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
main.py
Sign in to run your code.
Output
Press Run to see what your program prints.