Skip to content

Instantly share code, notes, and snippets.

View cmehay's full-sized avatar
🥐

cmehay

🥐
View GitHub Profile
@cmehay
cmehay / 2_enfants.py
Created February 8, 2019 21:44
Simulation du paradoxe des deux enfants
import random
class Children:
def __init__(self):
self.is_a_boy = bool(random.getrandbits(1))
class Daddy:
def __init__(self):
self.children_1 = Children()