Python For Kids (Part 13: Debugging "Hello World")
Kevin Thomas
Director of Test Automation and Author of the world’s most popular Reverse Engineering Tutorial
For a complete table of contents of all the lessons please click below as it will give you a brief of each lesson in addition to the topics it will cover. https://github.com/mytechnotalent/Python-For-Kids
Today we will debug or "look inside" our first program. Each of these lessons will involve learning something new and then "looking inside" at it so we have a complete understanding of what we are doing and have a much deeper prospective of Python as most courses only briefly touch upon this most import concept. With this course you will be ONE with the Python :)
STEP 1: Open Mu IDE
STEP 2: Click Load
STEP 3: Open File - Click main.py - Click Open
STEP 4: Update Code
STEP 5: Click Save
STEP 6: Click Run
STEP 7: Type N & Press Enter
STEP 8: WATCH HOW OUR DEBUGGER RAN OUR PROGRAM STEP-BY-STEP
Ok... I know this may be a little scary at first but please take your time and work with this.
All that we did was tell our program to "take your time" and run "each line" so we can see what is going on under the hood.
In this example we typed in the n letter which means next which means, "hey computer go ahead and be a cool dood and run line 2 so I can see what happens".
Then we see Hello, World! printed out like we saw in our last lesson.
HOMEWORK:
I want you to go back to the program and type in something other than Hello, World! and then click save and run and n and watch the result.
This will not make sense now but with every lesson we will use this debugging technique so we have a better understanding of Python.
In the next lesson we work with I/O meaning input and output and interact with our program a little more.