def is_conflict(existing_reservations, new_reservation):
new_start, new_end = new_reservation
for exist_start, exist_end in existing_reservations:
if new_start < exist_end and new_end > exist_start:
return True
return False
existing_reservations = [(9, 11), (13, 15)]
new_reservation = (10, 12)
ret = is_conflict(existing_reservations, new_reservation)
print(ret)
To embed this project on your website, copy the following code and paste it into your website's HTML: