SOLVED PROBLEMS USING PYTHON