PyCharm Run command does not print, python console does

Hello, 

When I run my code using the "Run" green arrow in the PyCharm IDE, nothing prints and it returns an exit status 0. However, copying and pasting the code into the Python Console produces the desired print statements. What could be the cause? 

See attached screenshots.

Thanks for any help, 

Joshua 

 

 

RUN WITH ARROW: 

 

RUN IN PYTHON CONSOLE:

2 comments
Comment actions Permalink

If you look at the first line of the run console output, you may notice the wrong file is being run. Please create a new run configuration for the file that opened in the editor.

https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html

2
Comment actions Permalink

That was it, thanks for helping me understand the IDE a little more!

-Joshua

1

Please sign in to leave a comment.