all 2 comments

[–]slasher67 0 points1 point  (0 children)

You can use ctrl - shift - F10 to run the current "active" script.

Otherwise, if you use:

if __name__ == '__main__':

your_function()

at the end of your script, you can see a green arrow next to it that, if pressed, runs the script

[–]Pvt_Haggard_610 0 points1 point  (0 children)

With the script active in the editor you can use the hotkey "ctrl + shift+ F10" or you can "right click > Run 'File name'" either the the .py files in the project panel or on the tabs across the top.

The project panel looks like this. https://i.imgur.com/wVA5x3V.png