assignment 10 for python course