Python quick reference
From thelinuxwiki
Contents |
Introduction
Lexical analysis
Data model
Execution model
Expressions
Simple statements
print sing variable named foo
print foo
print multiple variables with text
print 'my variable are %s %s' % (FOO, BAR)
Common string operations
print nth word of string
print s.split()[n]