Is it possible to step through Python code in IDLE 3.11 like you can in Visual Studio?

I’m trying to step through some code line by line, but I don’t see a way of doing it in Python IDLE 3.11. I’m using a blank file and writing very basic scripts.

In Visual Studio you can execute and step through code one line at a time and see the changes in the variables etc. Is this possible in Python IDLE 3.11?

Assuming you already have the script open in IDLE, open a Python shell window (Run->Python Shell), click Debug->Debugger in that window, and then run the script.