Updates:

You can now choose from a number of pre-installed themes

[SOLVED] List of Python commands

Started by pooky2483, July 12, 2019, 11:48:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pooky2483

Just wondering where I can get a full list of Python (3.7.4) commands as I'm struggling to find a list anywhere, maybe I'm looking in the wrong place(s) or not using the correct search term(s).

TIA
[img]http://imageshack.com/scaled/medium/845/l5qo.jpg[/img]
Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Mark Greaves (PCNetSpec)

#1
The problem is that you're asking an meaningless question, python isn't a bunch of commands it's an object oriented programming language.

I don't mean to sound like I'm being awkward, but this really is one of those times when "RTFM" makes a lot of sense ;)

Even if it's only to learn what questions to ask the python pro's .. not that I'd likely be able to answer anyway, I'm only scratching the surface of python myself (I can make sense of what some of it is doing when I see it, but that's about it).




At a python shell prompt (not a bash prompt)>>>
help('modules')
and say>>>
help('os')
for example might help a little (if you can read that kinda gibberish) .. but the manual and online tutorials are where you'll find the most help if you wanna learn to program in python.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk


pooky2483

I know exactly what you're saying.
What I was looking for was something like a list of the 'commands' in a sort of index so I could see all of them in one place, not just throughout a manual, which does not cover every single one.
[img]http://imageshack.com/scaled/medium/845/l5qo.jpg[/img]
Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

pooky2483

#3
Found out how to get a list of python keywords...
In IDLE, enter the following;


import keyword
print(keyword.kwlist)


Result;

['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']

Source:
https://www.programiz.com/python-programming/keyword-list (https://www.programiz.com/python-programming/keyword-list)
[img]http://imageshack.com/scaled/medium/845/l5qo.jpg[/img]
Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3