Completed ex47_tests.py
Completed ex47_tests.py

Added all the required functions for testing ex47_tests.py. Test was
running without any error.

arantebillywilson/python-snippets,arantebillywilson/python-snippets