Question: Write python function flip(n) that returns either the string 'tails' if n is less than 50 or 'heads' if n is greater than 50. Assume
Write python function flip(n) that returns either the string 'tails' if n is less than 50
or 'heads' if n is greater than 50. Assume that n is a real number in the range of 0 to 100.
Step by Step Solution
There are 3 Steps involved in it
Answer You can implement the flip function in Python as follows ... View full answer
Get step-by-step solutions from verified subject matter experts
