IntelliJ and PyCharm will not display code return, just code 0

Solution 1:

I had that problem as well (on Windows 10).

For me the issue was solved by removing the .idea folder and opening the project as a new project in PyCharm.