Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run code in Pycharm

Tags:

python

pycharm

If I go to "tools" and select "python console", and enter several lines of code, how do I execute this? If my cursor is at the end of the script, I can just hit enter. But how can I run the code using keyboard shortcuts if the cursor is not at the end? In Spyder this is done using shift+enter, but I can't figure out how to do it here. I've seen places say control+enter, but that doesn't work. Thanks!

like image 386
Kyle Avatar asked Oct 17 '22 15:10

Kyle


1 Answers

If you use Win 10, 64Bits. Run your codes using Ctrl + Shift + F10 or simply right click on the workspace and click Run from the options.

like image 178
Emmanuel Olujobi Avatar answered Oct 20 '22 10:10

Emmanuel Olujobi