Changes to ex6.py and new exercise 7.

In exercise 6 changed formatter from f to r in line 24. Added exercise
7.