Add new file

This commit is contained in:
Ferexio 2022-08-03 10:41:53 +00:00
parent d0147eac6c
commit 9ca2cfa2b8

6
coin_2.py Normal file
View file

@ -0,0 +1,6 @@
import random
coins = { "heads": 0, "tails": 0 }
for _ in range(100):
coin = random.choice(["heads", "tails"])
coins[coin] += 1
print("Heads", coins["heads"], "\nTails" , coins["tails"])