# Exercise 6.18 import random def coin(): 'write docstring here' pass # replace this with your implementation # Problem 6.20 def reverse(phonebook): 'write docstring here' pass # replace this with your implementation # Problem 6.23 import string def scaryDict(filename): 'write docstring here' pass # replace this with your implementation # Problem 6.27 def index(filename, words): 'write docstring here' pass # replace this with your implementation # Problem 6.30 # Assumes that module homework4Sol.py (my solutions # for homework 4) is in the same directory as this # file (homework7.py) import random, homework4Sol def simul(n): 'write docstring here' pass # replace this with your implementation # Problem 6.33 from random import randrange def diceprob(r): 'write docstring here' pass # replace this with your implementation