Oshawott wrote:RambroGaming wrote:http://i.chzbgr.com/completestore/2012/3/23/07c76930-f7cc-4c19-adbb-4f7552d8c168.gif <lol
umm rambro why did you repost a gif?
cause i copied it
Oshawott wrote:RambroGaming wrote:http://i.chzbgr.com/completestore/2012/3/23/07c76930-f7cc-4c19-adbb-4f7552d8c168.gif <lol
umm rambro why did you repost a gif?
import random
k = True
h = 0
t = 0
s = 0
def reset():
global h, s, t
h = 0
t = 0
s = 0
while k:
b = raw_input("How many times do you want to flip?")
d = int(b)
for i in range(d):
c = random.randint(0, 1000)
if c < 500:
print "Heads"
h = h + 1
elif c <= 1000 and c > 500:
print "Tales"
t = t + 1
else:
print "It landed on the edge! What are the odds?"
s = s + 1
g = raw_input("Display stats? [Y/N] ")
if g == "y" or g == "Y":
print "Heads = ", h
print "Tails = ", t
print "Landed on side ", s, " times."
reset()
else:
False
reset()
a = raw_input("Want to do it again? [Y/N] ")
if a == "Y" or a == "y":
True
reset()
else:
k = False
Users browsing this forum: No registered users and 5 guests