Answered You can hire a professional tutor to get the answer.
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()