Add new file

main
Ferexio 2022-08-03 10:41:36 +00:00
parent 31729d1ca3
commit d0147eac6c
1 changed files with 12 additions and 0 deletions

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}")