This is the only pain point. The book was published in 2016. If you download a raw PDF and copy-paste the code, it on Python 3.10+ without modifications.
I recently finished reading Make Your Own Neural Network by Tariq Rashid. I cannot recommend it enough. In fact, I believe it should be required reading before anyone touches TensorFlow, PyTorch, or even Scikit-learn. make your own neural network by tariq rashid pdf
Have you read Tariq Rashid’s book? Did you run into the Python 2.7 trap? Let me know in the comments below! This is the only pain point
TL;DR: If you have ever opened a machine learning tutorial, seen a wall of calculus, and closed the tab—this book is your cure. seen a wall of calculus