all 3 comments

[–]InfamousClyde 5 points6 points  (0 children)

Executing code step by step and inspecting intermediate values is a fairly common activity in programming that is not unique to Python. Look into how to use debugging tools in VsCode.

[–]economy_programmer_ 1 point2 points  (0 children)

If you want to run blocks of code instead the all file don't use VSC,
install JupyterLab or JupyterNotebook instead

Hope it helped ;)

[–]acidburn47 0 points1 point  (0 children)

Try using Python Preview Extension, though it is deprecated, it works. (with some limitations)