Answer the question
In order to leave comments, you need to log in
How to write and immediately test python code without console and shell?
Hello.
I'm starting to learn Python and a very important question immediately pops up: how to do without the console and Shell to run python scripts? Is there any mechanism that would hook up to the IDE and, after saving the file, would run the code and display it in a convenient place (inside the editor / in the browser)? I still can’t imagine how people test python code more seriously than hello world)
Thank you.
Answer the question
In order to leave comments, you need to log in
What do you mean by "test"? Print the output of your code?
In a good way, it is worth writing tests (for example, using the unittest library), and how you organize the test run is up to you.
If you just need to run the code before saving, what's stopping you from doing it manually?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question