I am new to PyCharm and I have \'Process finished with exit code 0\' instead of getting (683, 11) as a result (please see attachment), could you guys help me out please? Much ap
I think there's no problem in your code and you could find your print results (and other outputs) in the tab 5: Debug
rather than 4: Run
.
What worked for me when this happened was to go to
Run --> Edit Configurations --> Execution --> check the box
Run with Python Console
(which was unchecked).
Almost all the program(C++/python/java..) return 0 if it runs successful.That isn't specific to pycharm or python.
In program there is no need to invoke exit
function explicitly when it runs success it invoke exit(0) by default, invoke exit(not_zero_num)
when runs failed.
You can also invoke exit
function with different code(num)
for analysis.
You can also see https://en.wikipedia.org/wiki/Exit_(system_call) for more details.