Add new file

This commit is contained in:
Ferexio 2022-08-03 10:41:36 +00:00
parent 31729d1ca3
commit d0147eac6c

12
coin_1.py Normal file
View file

@ -0,0 +1,12 @@
import random
heads = 0
tails = 0
for _ in range(100):
coin = random.choice(["heads", "tails"])
if coin == "heads":
heads += 1
else:
tails += 1
print(f"Heads: {heads}")
print(f"Tails: {tails}")