Update Python Problem 23