Revert "Create ex40.py"

This reverts commit c7a8330bc63ede8826dae11891ad664b6181ca66.