So the title was a bit misleading. I didn't finish an entire book on Python. Rather, I finished a book called Raspberry Pi Cookbook, which has has 3 sections on Python: Python Basics, Python Lists and Dictionaries, and Advanced Python. It then jumps into much more complicated projects using the raspberry pi and python to control electronics like motors and whatnot. I chose this book because the author also wrote a great book for starters on Programming with Arduino in which he goes through a program and has comments on each line explaining what it means and what it does. I was able to understand a lot of the concepts and even come up with simple programs on my own.
This book, however, does not do that so I feel like I'm not learning anything. Rather, just mindlessly copying code without knowing what it's doing. I had the ebook opened up right next to idle, and I finished all the little tutorials. At the end I just didn't know how I would apply using lists, dictionaries, and all that other stuff in a practical way. VERY similarly to how a kid in high school math might say, "Yeah that's great. But why do I need to know this and how is it gonna help me in the future?"
Does anyone have a better book to learn Python with? Something (like described above) that has code being implemented in simple programs that actually do something and then explanations of the code broken down line by line? I find this is much more fun and motivating.
Please take a look at this online tutorial by Simon Monk. I have linked you to the page where after finishing the tutorial, Simon Breaks down each section of code. THIS is the method of teaching that I've found the most fun and motivating.
TL;DR: Does anyone know of a book that teaches Python through real-world programs. Then breaks down the code line by line?