Reference

XCODX · Reference

Python Reference

Reference pages for Python — syntax, parameters, return values and runnable examples.

All Python reference pages

This is the Python reference on XCODX. Each page documents one feature completely — the exact syntax, its parameters and return value, the gotchas that trip people up, and runnable examples you can edit right on the page.

The pages below are grouped so related topics stay together. Pick one to dive in, or run anything you find in the Python online compiler.

Frequently asked questions

Are these Python reference pages for Python 3?
Yes. Every page documents current Python 3 behavior, including f-strings, dictionary ordering guarantees, and modern built-ins.
What is the difference between a method and a built-in function?
A method is called on a value (text.split(), d.get()), while a built-in function takes the value as an argument (range(5), enumerate(items)). Both are documented here.
Can I run these Python examples in the browser?
Yes. Every runnable snippet works in the XCODX online Python compiler — no local setup needed.