Answer the question
In order to leave comments, you need to log in
PyCharm not outputting result?
Even the simplest print('Hello world') operation seems to be ignored. As a result, only Process Finshed with exit code 0 is obtained, that is, the code was successfully executed, but there is no result. What to do?
Answer the question
In order to leave comments, you need to log in
I assume you run the script with the green button at the top? And look next to the button to the left of it, what script is indicated? The one you are running? There's a dropdown list.
It is best to add the construction to the text of the script
if __name__ == "__main__":
print("Hello python")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question