Here are my programs for the two problems of Quiz 06.
https://www.dropbox.com/s/aw1iztygj5lwznf/p1.py?dl=0
https://www.dropbox.com/s/90chm5o9zppm58u/p2.py?dl=0
#quiz06 by finntec is licensed under a Creative Commons Attribution 4.0 International License.