1. Copy and run fig04_07.py (see page 128) from:Find your solution and extend it like this:
~chili/CSS.E03/Programs_from_book/ch04/fig04_07.py)2. Change line 14 to face = honestDie() and write the function honestDie which returns a random number between 1 and 6.
3. Write another function cheatingDie which returns 6 with probability 0.25 (and 1 - 5 with probabilities 0.15). Call this function 60000 times (instead of 6000) and check that the frequencies change.
4. Change cheatingDie so it takes an argument 0 < p < 1 and returns 6 with probability p and 1 - 5 with probability (1 - p) / 5.
5. Change the function definition of cheatingDie so that the argument p has a default value of 0.25. Do experiments where you call the function with and without setting p to check the frequencies.
6. Move the two functions honestDie and cheatingDie to a new .py file and import this file as a module so you can use the functions.
7. Find the documentation for the random module from the web resources pages; would the function random from this module be more appropriate than randomrange in some parts of your program? If you think so, use it.