Python programs for practice with solutions