May-15-2024, 08:17 AM
(May-15-2024, 06:02 AM)Gribouillis Wrote:(May-15-2024, 05:04 AM)Schauster Wrote: >>> python C:\Users\brett\OneDrive\Desktop\IntroDon't call the 'python' command from within the Python interpreter (>>>). Call it directly from the command line (and don't forget the .py suffix)
Output:C:\Users\brett>python C:\Users\brett\OneDrive\Desktop\Intro.py
Ok so I tried to open the command prompt and tried both without typing python first, then it didn't have the three >>>. Afterwards, I typed python and got the 3 >>>, either way I got errors.
C:\Users\brett>C:\Users\brett\OneDrive\Desktop\Intro.py
'C:\Users\brett\OneDrive\Desktop\Intro.py' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\brett>python
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> C:\Users\brett\OneDrive\Desktop\Intro.py
File "<stdin>", line 1
C:\Users\brett\OneDrive\Desktop\Intro.py
^
SyntaxError: unexpected character after line continuation character