keep getting a syntax error on the very first program I am running

Jon Ribbens jon+usenet at unequivocal.eu
Fri Jan 14 20:45:58 EST 2022


On 2022-01-15, Bob Griffin <bob.griffin76 at gmail.com> wrote:
>    I am running this program and keep getting this error.  Is this normal?
>
>    Invalid syntax.  Perhaps you forgot a comma?
>
>    Also the t in tags is highlighted.
>
>    I even tried different versions of Python also.
>
>    Python 3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64
>    bit (AMD64)] on win32
>
>    Type "help", "copyright", "credits" or "license()" for more information.
>
>    print("Hello World")
>
>    Hello World
>
>    input("\n\nPress the enter key to exit.")

You're only supposed to enter the lines:

    print("Hello World")

and

    input("\n\nPress the enter key to exit.")

The other lines are showing you the output you should see.


More information about the Python-list mailing list