Created
November 28, 2017 10:52
-
-
Save rizsotto/b42ba7512b2854264c818407ad404d9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import itertools | |
import collections | |
import pprint | |
def flip(): | |
return bool(random.randint(0, 1)) | |
def flips(count): | |
return (flip() for _ in range(0, count)) | |
def double_flips(count): | |
return zip(flips(count), flips(count)) | |
experiment = double_flips(100) | |
stats = collections.Counter(experiment) | |
pprint.pprint(stats) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With any homework, sometimes you need help. It is difficult for nursing students to find the time to keep up with all the assignments and clinical responsibilities. I turned to https://myhomeworkdone.com/nursing-homework-help.html for nursing homework help, hoping to alleviate some of my academic workload. The registration and ordering process on the site was convenient and efficient, allowing me to get the help I needed quickly.