Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Why python pop up message syntax error  (Read 49734 times)

0 Members and 1 Guest are viewing this topic.

hfsoon

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 10
    Why python pop up message syntax error
    « on: May 20, 2020, 02:57:17 AM »
    Hi expert,

    I was starting to pick up Python as beginner. Follow the instruction in Computer Hope tutorial accordingly.
    Version of Python use is 3.8.3

    The interface return a message below:

     >>>     py read.py
    File "<stdin>", line 1
        py read.py
           ^
    SyntaxError: invalid syntax

    May anyone know what mistake I made on the line above ?
    Appreciate your time to the matter
    Regard

    A snapshot of error message provided in attachment

    hfsoon

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Windows 10
      Re: Why python pop up message syntax error
      « Reply #1 on: May 20, 2020, 04:04:01 AM »
      Hi all,

      I think I got the answer, the command actually can be executed directly from cmd prompt.
      Thus it is working fine.

      Thank you