Python Commandline


c:\satya\i\python374C:\satya\i\python374\Scripts

The python shell, or command line is documented here

The link above is 3.7

Now it is at 3.11, fyi


C:\>python

Python 3.7.4 
Type "help", "copyright", "credits" or "license" for more information.
>>>

>>>help()

Notice the brackets ()
Because help() is a global function.

>>>quit()

Or ctrl-z

>>> help()

will prompt with

help>

To see topics type

help>topics

One of the topics is TYPES

so to get help on "TYPES"

help> TYPES

Notice that "TYPES" is case sensitive

Use "q" or "quit" to come out of More...


help> types
Help on module types:

NAME
 types - Define names for built-in types 
 that aren't directly accessible as a builtin.

CLASSES
    builtins.object
        builtins.async_generator
        builtins.builtin_function_or_method
        builtins.classmethod_descriptor
        builtins.code
        builtins.coroutine
        builtins.frame
        builtins.function
        builtins.generator
        builtins.getset_descriptor
        builtins.mappingproxy
        builtins.member_descriptor
        builtins.method
        builtins.method-wrapper
        builtins.method_descriptor
        builtins.module
        builtins.traceback
        builtins.wrapper_descriptor
        DynamicClassAttribute
        SimpleNamespace

    AsyncGeneratorType = class async_generator(object)
     |  Methods defined here:
-- More  --

Use "q" or "quit" to get out

Like help(), other built-in functions are documented here


python some-script-file.py

#.py is convention
#any text file will work as well

Language Reference

Standard Library

Tutorial

1. To quit python use quit() or ctrl-z

2. To quit help() use "q" or "quit" (no brackets)

3. To quit more... use "q" or "quit"