Navigation
index
next
|
previous
|
WTOPIA v1.0 documentation
»
Python
»
A Byte of Python (for Python 3.0)
ΒΆ
Chapter 1: Introduction
Introduction
Features of Python
Why not Perl?
Why not Ruby?
What Programming Say
About Python 3.0
Chapter 2: First Steps
Introduction
Using The Interpreter Prompt
Choosing An Editor
Using A Source File
How It Works
Executable Python Programs
Getting Help
Chapter 3: Basics
Literal Constants
Numbers
Strings
Single Quotes
Double Quotes
Triple Quotes
Escape Sequences
Raw Strings
Strings Are Immutable
String Literal Concatenation
The format Method
Variables
Identifier Naming
Data Types
Objects
Example: Using Variables And Literal Constants
Logical And Physical Lines
Indentation
Chapter 4: Operators and Expressions
Introduction
Operators
Shortcut for math operation and assignment
Evaluation Order
Changing the Order Of Evaluation
Associativity
Expressions
Chapter 5: Control Flow
Introduction
The if statement
The while Statement
The for loop
The break Statement
Swaroop’s Poetic Python
The continue Statement
Chapter 6: Functions
Introduction
Function Parameters
Local Variables
Using The global Statement
Using nonlocal statement
Default Argument Values
Keyword Arguments
VarArgs parameters
Keyword-only Parameters
The return Statement
DocStrings
Annotations
Chapter 7: Modules
Introduction
Byte-compiled .pyc files
The from ... import ... statement
A module’s __name__
Making Your Own Modules
The dir function
Packages
Chapter 8: Data Structures
Introduction
List
Quick Introduction To Object And Classes
Tuple
Dictionary
Sequences
Set
References
More About Strings
Chapter 9: Problem Solving
The Problem
The Solution
Second Version
Third Version
Fourth Version
More Refinements
The Software Development Process
Chapter 10: Object Oriented Programming
Introduction
The self
Classes
Object Methods
The __init__ method
Class And Object Variables
Inheritance
Chapter 11: Input Output
Introduction
Input from user
Files
Pickle
Chapter 12: Exceptions
Introduction
Errors
Exceptions
Handling Exceptions
Raising Exceptions
Try .. Finally
The with statement
Chapter 13: Standard Library
Introduction
sys module
logging module
urllib and json modules
Module of the Week Series
Chapter 14: More
Introduction
Passing tuples around
Special Methods
Single Statement Blocks
Lambda Forms
List Comprehension
Receiving Tuples and Lists in Functions
exec and eval
The assert statement
the repr function
Previous topic
Python
Next topic
Chapter 1: Introduction
Quick search
Enter search terms or a module, class or function name.
Navigation
index
next
|
previous
|
WTOPIA v1.0 documentation
»
Python
»