I'll flip you for it

Phillipa Coyne is a probability teacher who wants to show her students about random events. She asks you to write a program that flips a coin a defined number of times.

Write a Python function that conforms to the following: