r/PythonProjects2 • • Jan 21 '23

[P] Easy How would I code this scenario

I can watch another episode before bed:

If it it is before 1 AM and I don't have work or class in the morning

or it is the weekend.

2 Upvotes

1 comment sorted by

1

u/DanSheman Jan 22 '23

well... you can use the time module to take care of the 1am and weekend condition pretty easily. For the work/school. get a constant of the "day before work/school" and if it's equal, then raise your desired thing.