Is there any place where you can find a complete list of python commands?

I have googled and skimed through the tutorial and I can't find any place where I can find a complete list of python commands and examples on how to use them?

If there isn't one I suggest that we make one!

We create a wiki where anyone can post a command and an example to go with it!

For example:

LIST OF COMMANDS IN PYTHON

1.) print
Used to display text

Example: print "hello world"
Result: hello world

Any ideas on how to do this? Comments? Opinions?

Dani AI

Generated

Brief answer: there are authoritative, “complete” lists (the language reference for keywords/statements and the library/built‑in reference for functions and modules), but what most people want is a single place that pairs each entry with clear, short examples. pointed to the official reference (the canonical list); is right that those pages are thin on real-world snippets; and ’s wiki idea is exactly the practical complement the reference needs.

For a practical workflow, use two sources together: an authoritative reference for completeness and a curated example collection for clarity. The official library pages are the canonical index (Python Standard Library), and a hands‑on companion such as Python Module of the Week shows real usage patterns. For deeper recipes, the Python Cookbook and community Q&A (Stack Overflow) are good follow-ups.

If a community wiki is created, keep entries uniform and versioned. Suggested fields per entry: one‑line purpose, minimal tested example, common pitfalls, performance/complexity notes, and a version tag (Python 2 vs 3 matters—Python 2 reached end of life on January 1, 2020). Start with a small seed: built‑ins, keywords, built‑in types, and the most used stdlib modules (os, sys, itertools, datetime, json, re). Use cross‑references and a search index so readers find related idioms, not just API names.

If setting up a full wiki is too heavy, begin with a single Markdown repository or a short “cheat sheet” page that others can fork and expand. Keep examples tiny, tested, and labelled by Python version; that will make the collection useful long after this thread was posted.

Recommended Answers

All 3 Replies

The problem with the standard helpfile at:

is the lack of examples. The few examples given are dreadful at best, and many are littered with those blurring >>> prompts.

Yes, a wiki with helpful code snippets would be very nice. However, you need a good way to reference and crossreference. The other way would be to doctor up the lib.html file and the indexing.

There are some languages out there that have excellent help files with lots of sample code. Look at Ruby, BCX basic, and I understand Borland C++ has a good one too.

Currently I don't have the resources or the experience to set up a wiki.....maybe one day...

Thanks for the web site, it is better than what I was dealing with.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.