edX: CS, Python. Problem set 3.