ex27.py 

here it is