While working through I am working through Programming Collection Intelligence I found myself sending a lot of time translating the Python…