How to Think Like a Computer Scientist: Learning with Python3 I have tried to solve the assignements and get the desired outcomes.