Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Build a Double-Booking Checker in Python | 35-Minute Beginner Project

Video information, playback and saved actions.

Build a Double-Booking Checker in Python | 35-Minute Beginner Project

Description: Studio A has 40 minutes free. Studio B has only 30. Which studio can take a 30-minute recording? In this Python code-along, you’ll build a booking checker that answers that question and shows exactly where the session fits.

You’ll read a studio schedule from a CSV file, catch two bookings hidden inside a longer appointment, and find the first uninterrupted slot a customer can book. Then you’ll move one appointment by ten minutes and see how the answer changes.

If you know how to follow a Python loop, you’re ready to build along. The project uses Python 3 and its standard library.

Chapters

00:00 Can 40 free minutes fit a 30-minute booking?
02:00 Convert clock times into minutes
04:22 Model a booking with a Python dataclass
06:39 Read the bookings from a CSV file
09:15 Sort each studio’s bookings by time
11:25 Work out when two bookings overlap
13:45 Catch the two hidden double bookings
16:07 Find free time on the schedule
18:32 Handle opening and closing time
20:46 Find the first slot that fits
23:03 Run the full booking report
25:27 Check the answer minute by minute
27:48 Test the checker with invalid bookings
30:03 Move one appointment by ten minutes
32:25 Try the final booking challenge Close description
      
Videos related to "Build a Double-Booking Checker in Python | 35-Minute Beginner Project"

Related videos are temporarily unavailable.

Try again, or come back later.