14 lines
279 B
Python
14 lines
279 B
Python
|
import random
|
||
|
import itertools
|
||
|
|
||
|
results = {
|
||
|
'heads': 0,
|
||
|
'tails': 0,
|
||
|
}
|
||
|
sides = list(results.keys())
|
||
|
|
||
|
for i in range(10000):
|
||
|
results[random.choice(sides)] += 1
|
||
|
|
||
|
print('Heads:', results['heads'])
|
||
|
print('Tails:', results['tails'])
|