meetings = [(1,4), (3,5), (0,6), (5,7), (3,8)]
meetings.sort(key=lambda x: x[1])
count = 0
end_time = 0
for start,end in meetings:
if start >= end_time:
count += 1
end_time = end
print(count)
To embed this project on your website, copy the following code and paste it into your website's HTML: