Forums

Cannot get simple command to run: 3*5 from file

I am currently trying to learn python from scratch. I am using a tutorial from Python.org for Python 3.8.20. I have gone into account tab and set my default for everything to 3.8 (i don't see 3.8.20 as an option). When i create a new file “My_script.py” and I attempt to run the line: 3 * 5 nothing happens unless I type it in the bottom part (sorry I am not sure what the differences are in the name of the top white part and the bottom black part) is this because the top part (which seems to be the actual file) is not 3.8 even though I changed the settings? If so how do I change this? I want to be sure that I dont run into issue like this as I continue to follow the tutorial.

The top part is an editor, where you enter a multi-line script that you want to run all in one go -- there's a "Run" button at the top to do that. If what you want is an interactive session where each line gets executed as soon as you type it in and hit enter, you can start a Python 3.8 console from the "Consoles" page.