You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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']) |