Sep-19-2023, 09:33 AM
Basically, as everyone else has stated, you are running a commandline instruction inside of Python.
However, it looks as if you have already run a command in the commandline window; the command being python (or python3, or sometimes py). This is because the lines you show are actually Python running:
Now, this might be within the immediate window of Idle (if you ran Idle and then typed the command Python --version).
Either way, why not look for the waiting prompt and simply type a Python instruction:
>>>
Is the prompt. So, try the following:
>>> print("This is a Python command to send something to the default output device")
Now press the ENTER key and you should then see the text in the brackets appear below the line you just typed.
python --versionis a command to ask the computer what version of Python you have installed. So, when you have just opened your commandline editor (cmd in Windows) and type this, you should get a few lines that tell you the version you have.
However, it looks as if you have already run a command in the commandline window; the command being python (or python3, or sometimes py). This is because the lines you show are actually Python running:
Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>You can see the version of Python you have installed (Python 3.11.5), keywords you could type to help you ("help", "copyright", etc), and then the prompt for you to enter any Python command you might wish to run.
Now, this might be within the immediate window of Idle (if you ran Idle and then typed the command Python --version).
Either way, why not look for the waiting prompt and simply type a Python instruction:
>>>
Is the prompt. So, try the following:
>>> print("This is a Python command to send something to the default output device")
Now press the ENTER key and you should then see the text in the brackets appear below the line you just typed.