Author Topic: [SOLVED] List of Python commands  (Read 223 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
[SOLVED] List of Python commands
« on: July 12, 2019, 11:48:57 pm »
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
« Last Edit: Yesterday at 12:36:30 pm by pooky2483 »

Kubuntu 16.04LTS 64bit|KDE 5.36.0|QT 5.6.1|Linux 4.15.0-39-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

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: List of Python commands
« Reply #1 on: July 13, 2019, 12:44:11 am »
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)>>>
Code: [Select]
help('modules')
and say>>>
Code: [Select]
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.
« Last Edit: July 13, 2019, 12:46:38 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: List of Python commands
« Reply #2 on: July 14, 2019, 11:11:59 am »
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.

Kubuntu 16.04LTS 64bit|KDE 5.36.0|QT 5.6.1|Linux 4.15.0-39-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

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: List of Python commands
« Reply #3 on: Yesterday at 12:36:02 pm »
Found out how to get a list of python keywords...
In IDLE, enter the following;

Code: [Select]
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
« Last Edit: Yesterday at 12:42:02 pm by pooky2483 »

Kubuntu 16.04LTS 64bit|KDE 5.36.0|QT 5.6.1|Linux 4.15.0-39-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

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal