If you want to combine simple statements on one line, you can use a semicolon. The colon is required. Indentation must be consistent. Element and slice assignment. A class may inherit from one or more superclasses.
Modules Gain access to other modules with the import statement.
The module runs the first time it is loaded. Names within module are accessed as module.name . And important built-in methods like append , keys , and sort . Hundreds exist, see the library documentation at the Python web site .