You must configurate the IDE to run each script ("py" file), or create a new environment.
For Educational purposes, you must to install the "EDUtools" plugin. Go to the right below corner from the Pycharm start up portal: Configurate > Plugins > Search for: EDUtools > Install it and restart the IDE. Then you will able to select "Learn and Teach" for courses.