DEV Community

TANYA LYOP ACHAYI
TANYA LYOP ACHAYI

Posted on

Day 9 of 100.


Today I wrapped up operators by building a fun little program 🎬.
It checks if someone can watch a movie based on their age and whether they have a ticket.

I used arithmetic, comparison, and logical operators all together, and it felt like connecting puzzle pieces.

I am proud of myself 🤗😊😊

PythonZeroToHeroStudent

100DaysOfPython

MiniTicketCheck

Top comments (2)

Collapse
 
daemonic01 profile image
Dominik Kopócs • Edited

Hey, good job again!
Maybe you should try to validate the ticket or age.
For example you can ask for birth date and check if the user is older than 18 or not. It would be an entry point for datetime module. Or make a list of N-length numeric codes and ask for ticket code, then check if the given code is in the list.
Or both? Up to you. 😊
Keep going, just 91 day to go.
And don't forget: Every program starts as a small script, you just have to extend it's features. 😃

Collapse
 
lyop_achayi profile image
TANYA LYOP ACHAYI

Noted sir, I will work on it.

Thank you 😊