Python Assignment Solution on Game of Chance