Skip to main content

Probability Riddle Using Python: Crossing a River after Heavy Rain


A traveler approaches a river spanned by bridges that connect its shores and islands. There has been a great storm the night before, and each bridge was as likely as not to be washed away. How probable is it that the traveler can still cross?

Python Solution:

Riddle source: