[Idle-dev] running a program on python 3.8.3

Terry Reedy tjreedy at udel.edu
Sat Jun 27 22:05:36 EDT 2020


On 6/26/2020 11:26 AM, Caleb Nord via IDLE-dev wrote:
> I’m trying to run a program on python 3.8.3, but when I click the run 
> button it says invalid because it reads the python version at the top of 
> the idle screen.  If you know how to fix that I would be appreciated.

My guess is that you saved a shell session as a .py file, loaded it into 
an editor window, and tried to run it without editing out the non-code 
text.  Given
"""
Python 3.9.0b3 (tags/v3.9.0b3:b484871, Jun  9 2020, 20:36:59) [MSC 
v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
 >>> a = 3
"""
you have to remove everything before 'a = 3', and so on through the 
file.  If you did something else, please explain.

-- 
Terry Jan Reedy




More information about the IDLE-dev mailing list