May-17-2020, 08:46 PM
folks,
embarrassing, but nonetheless stuck.
i am in Corey Shafer's Beginner's Tutorial #1 and just installed python 3.8.3.
python installed into c:\users\ron\appdata... and i added a path to c:\python\python38-32
i ran python, used idle, and created an 'hello world' stored as c:users\ron\desktop\intro.py
when i type python desktop\intro.py i get a syntax message [i tried every variation i could think:
- c:\users\ron\desktop> python intro.py invalid syntax
- c:\>python> c:\users\ron\desktop\intro.py invalid syntax
if i use either of the basic setups, and type just python, i do get the >>> and can do a simple print ('hello world).
so, what embarrassing tidbit am i missing with this syntax stuff?
i can go to windows, launch python, open idle and find the file, but i can't execute it
[in the Beginner's Tutorial, Corey executes it from a MAC, but i can't get it to work in the cmd prompt
can someone enlighten me?
thanks,
ron
embarrassing, but nonetheless stuck.
i am in Corey Shafer's Beginner's Tutorial #1 and just installed python 3.8.3.
python installed into c:\users\ron\appdata... and i added a path to c:\python\python38-32
i ran python, used idle, and created an 'hello world' stored as c:users\ron\desktop\intro.py
when i type python desktop\intro.py i get a syntax message [i tried every variation i could think:
- c:\users\ron\desktop> python intro.py invalid syntax
- c:\>python> c:\users\ron\desktop\intro.py invalid syntax
if i use either of the basic setups, and type just python, i do get the >>> and can do a simple print ('hello world).
so, what embarrassing tidbit am i missing with this syntax stuff?
i can go to windows, launch python, open idle and find the file, but i can't execute it
[in the Beginner's Tutorial, Corey executes it from a MAC, but i can't get it to work in the cmd prompt
can someone enlighten me?
thanks,
ron