When I was do the ML courses, I had problems to create python codes to solve the ML problems. There is always some disconnections between the coding and the actual ML problems.
Until recently, I read a book called Algorithm, which solved all of my questions and queries to create my own ML coding problem.
Here is another very good book which helped me to understand ML algos
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, by Aurélien Géron
From my personal experience I can underline the mentioned books from Chollet & Goodfellow, too. I read them in 2018 during a 2 week holiday and I learned a lot!
I haven’t until now found a good exercise book for python. What I have been doing until now is taking Coursera courses in the topics that I am interested in.