finding bugs in program can be hardif you even notice them at allwhen running your programyou may discover that sometimes functions are not called when they are supposed to beor maybe they are called too many times you may code the condition for while loop wrongso that it loops the wrong number of times ( loop in your program that never exits is kind of bug called an infinite loop to stop this programyou can press ctrl- in the interactive shell to terminate the program any of these things could mistakenly happen in your code if you are not careful in factfrom the interactive shellgo ahead and create an infinite loop by typing this code in (you have to press enter twice to let the interactive shell know you are done typing in the whileblockwhile trueprint('press ctrl- to stop this infinite loop!!!'now press and hold down the ctrl key and press the key to stop the program the interactive shell will look like thispress ctrl- to stop this infinite loop!!press ctrl- to stop this infinite loop!!press ctrl- to stop this infinite loop!!press ctrl- to stop this infinite loop!!press ctrl- to stop this infinite loop!!traceback (most recent call last)file ""line in while trueprint('press ctrl- to stop this infinite loop!!!'keyboardinterrupt the debugger it can be hard to figure out how your code could be causing bug the lines of code get executed quickly and the values in variables change so often debugger is program that lets you step through your code one line at time in the same order that python executes them the debugger also shows you what values are stored in variables at each step starting the debugger in idleopen the dragon realm game you made in the last after opening the dragon py fileclick on the debug debugger to make the debug control window appear (figure -