A casino offers a game of chance for a single player in which a fair coin is tossed untill the first time tails appears. If this happens at the
Write your code in a file called petersburg.py
. The output of the program is the three average numbers with three digits rounded to three decimal places (after the decimal pont). The numbers are separated by spaces.
The aim of this task is to experience a random variable with infinite expected value. What would be a fair price to pay the casino for entering this game? (You do not have to answer this question.)