control + shift + r
-- runs the script ("source")
It's a pain to relearn shortcuts for every program, so I adjusted a few Pycharm shortcuts to match what I'm used to in RStudio.
To change shortcuts, go to Pycharm --> Preferences --> Keymap
Execute Selection in Python Console
-- I changed this tocommand + enter
so that the line my cursor is on will run in the consoleComment with Line Comment
&Comment with Block Comment
-- changed this tocmd+ shift + c
to match commenting in RStudio (possibly don't need to change both but didn't check)