Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python command interface
#5
Basically, as everyone else has stated, you are running a commandline instruction inside of Python.

python --version
is 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.
Reply


Messages In This Thread
python command interface - by cwc2 - Sep-19-2023, 03:49 AM
RE: python command interface - by cwc2 - Sep-19-2023, 04:08 AM
RE: python command interface - by menator01 - Sep-19-2023, 04:48 AM
RE: python command interface - by Pedroski55 - Sep-19-2023, 07:31 AM
RE: python command interface - by garynewport - Sep-19-2023, 09:33 AM
RE: python command interface - by Larz60+ - Sep-20-2023, 05:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  os.system("netsh interface set interface 'Wi-Fi' enabled") aniyanetworks 12 10,688 Jan-18-2019, 04:07 AM
Last Post: aniyanetworks
  Interface Arduino and MSSQL using Python MichaelDean 0 3,004 Nov-18-2018, 05:00 PM
Last Post: MichaelDean
  Python Interface for HWM14 sdipti596 4 5,492 Dec-26-2017, 10:21 PM
Last Post: Terafy
  Python interface only black and white........ Wilson 3 6,391 Jul-15-2017, 01:20 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020