Update Set4_Ex1.py

Added While loop. De-bugging done. Program should work.