Python: Reference

A quick reference guide for the Python programming language

Print & input

Variables & numeric operations

If / elif / else

For loop over a range

Strings

While loops

Lists (arrays)

For loop over a list

Read/write text files

Pygame: basics

Pygame: Draw shapes

Pygame: Write text

Pygame: Colors

Pygame: Hello Pygame demo

Pygame: Events

Pygame: Collisions

Pygame: Images (sprites)

Pygame: Sprite maps

Pygame: Scrolling background

Pygame: Music & sounds