@@ -0,0 +1,252 @@
+# This program simulates flipping a coin 1000 times%0A%0Aimport random%0Aheads = 0%0Afor i in range(1, 1001):%0A    if random.randint(0, 1) == 1:%0A        heads += 1%0A    if i == 500:%0A        print(%22Halfway done!%22)%0Aprint(%22Heads came up %22 + str(heads) + %22 times.%22)%0A

Initialize P08_coinFlip