You can read the entire 3rd Edition and 2nd Edition for free online under a Creative Commons license at automatetheboringstuff.com .
The free PDF explicitly shows :
“In the interactive shell, type len('hello') and press Enter. Then try len(str(12345)) .” automate the boring stuff with python free pdf
However I have to mention that providing a direct link to a free PDF might be against the author's and publisher's copyright. Al Sweigart provides a free online version of the book on his website, and also offers an e-book and print book for sale. You can read the entire 3rd Edition and
Python has a huge standard library; ABSG teaches the actually useful modules for automation: Al Sweigart provides a free online version of
By doing this you're respecting author's hard work and providing a way for him to continue creating free content.
While many people search for a "free PDF," you actually have several to access the material: