0

I need to have 4 functions which asks the user how many times to flip the coin and then displays the number of heads and the number of tails as a decimal?

```
def getInputs():
times=input("please enter the number of times the coin should be flipped: ")
def simulateFlips():
for i in range(times):
if randint(1,2) == 1:
print "Heads"
else:
print "Tails"
def main():
getInputs()
main()
def displayResults():
simulateFlips()
```