Skip to main content

Probability Riddle Using Python: Will We Meet?


Two friends who take the metro to their jobs from the same station arrive to the station uniformly randomly between 7 and 7:20 in the morning. They are willing to wait for one another for 5 minutes, after which they take a train whether together or alone. What is the probability of their meeting at the station?

Python Solution:

Riddle source: