I'm learning programming Python by reading the book Python Programming for the Absolute Beginner. As I get further into it, I find it harder and harder to follow.
I wondered if there is a tool that is able to run any Python code I create, which steps through each line and explains what's going on?
There is one at but it's only online and, as a result (I think) I can't get input function to work on it.
02 Answers
import ipdb ipdb.set_trace() And go through your code)
Or you can use pudb with more graphic -
4Get yourself an IDE, I use Pycharm, then you can step through line by line all you want.
Fine-tune Python or Django applications and unit tests using a full-featured debugger with breakpoints, stepping, frames view, watches & evaluate expressions.
Stepping through code in debug view is invaluable. Sure, you can do it in other ways but you get a 30 day free trial on this s/w to see if you like it.
There are other similar packages available of course.
1