Programming challenges implementd in python3.3