Answered You can hire a professional tutor to get the answer.

QUESTION

The flipCoin function should return "heads" or "tails".

Specifications:

•        You will need to import random in your code

•        The code to generate a number from 1 to the input sides is: flip = random.randint(1,2)

•        Use the .upper() command to check upper and lowercase input example: cont = input("To continue press Y: ").upper()

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question