Warning: The following cookie failures have been known to cause severe damage to taste buds, kitchen utensils, and the fabric of space-time itself.
A cookie was baked with a 50% chance of failure. The results were catastrophic.
cookie = bake_cookie()
if failure_rate > 0.5:
print("Catastrophe imminent!")
else:
print("Cookie is safe.")
The cookie in question was a lemon rosemary cookie with a failure rate of 0.7. The resulting catastrophe was felt throughout the galaxy.
Lesson learned: Always check your baking time and sugar levels.