The Python Quick Syntax Reference is the «go to» book that contains an easy to read and useguide to Python programming and development. This condensed code and syntaxreference presents the Python language in a well-organized format designed tobe used time and again.<br>You wont find jargon, bloated
The Python Quick Syntax Reference
✍ Scribed by Walters, Gregory
- Publisher
- Apress
- Year
- 2014
- Tongue
- English
- Leaves
- 140
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
The Python Quick Syntax Reference is the "go to" book that contains an easy to read and use guide to Python programming and development. This condensed code and syntax reference presents the Python language in a well-organized format designed to be used time and again. You won't find jargon, bloated samples, case studies, or history of Hello World and computer theory in this handy reference. This Python syntax reference is packed with useful information and is a must-have for any Python developer.
✦ Table of Contents
Contents at a Glance......Page 3
Contents......Page 125
About the Author......Page 138
About the TechnicalReviewer......Page 139
Acknowledgments......Page 140
Introduction......Page 4
Python’s Interactive Shell......Page 5
The Code......Page 6
Decoding the Code......Page 7
Comments......Page 8
Proper Variable Naming......Page 9
Numeric......Page 10
Tuple......Page 11
float(s)......Page 12
list(s)......Page 13
ord(c)......Page 14
oct(x)......Page 15
* Multiplication......Page 16
** Exponent......Page 17
== (Strings)......Page 18
>=......Page 19
*=......Page 20
Logical Operators......Page 21
Membership and Identity Operators......Page 22
Bitwise Operators......Page 23
|......Page 24
>>......Page 25
Precedence of Operators......Page 26
len()......Page 27
s1 + s2......Page 28
s[x1:x2:x3]......Page 29
str.decode([encoding[,errors]])......Page 30
str.expandtabs([tabsize])......Page 31
str.index(substring[,start[,end]])......Page 32
str.isdigit()......Page 33
str.istitle()......Page 34
str.lower()......Page 35
str.replace(old,new[,count])......Page 36
str.rsplit([sep[,maxsplit]])......Page 37
str.startswith(prefix[,start[,end]])......Page 38
str.translate(table[,deletechars]) Python 2.x......Page 39
Print Statement......Page 40
Python 2.x String Formatting......Page 41
Python 3.x String Formatting......Page 42
IF / ELIF / ELSE Statements......Page 45
For......Page 46
Break......Page 48
Pass......Page 49
While......Page 50
Digging Deeper......Page 51
Lists......Page 52
max(L) function......Page 53
L[x1:x2]......Page 54
.insert(i,x)......Page 55
.index(x)......Page 56
Dictionaries......Page 57
len(dictionary)......Page 58
.get(key[,default])......Page 59
.keys()......Page 60
.update(other)......Page 61
Tuples......Page 62
min(set)......Page 63
.pop()......Page 64
.discard(item)......Page 65
.issubset(set) or alternately x<=y......Page 66
.difference(set) or alternately x-y......Page 67
Frozensets......Page 68
List of Python Keywords......Page 69
Boolean Evaluation......Page 70
Debugging......Page 71
Conditional Statements, Loops......Page 72
Misc......Page 73
Error Handling......Page 74
Loops......Page 75
Variables......Page 76
Evaluation, Loops......Page 77
Boolean Evaluation......Page 78
Output, Debugging......Page 79
Functions......Page 80
Loops......Page 81
Iterators, Generators......Page 82
Evaluation (Version 3.x only)......Page 83
Escape Sequences......Page 84
Structure of a Function......Page 86
Optional Parameters......Page 87
Example 1......Page 88
Using Global Keyword......Page 89
Return a Value......Page 90
A real example......Page 91
Data Types......Page 93
os.path—Common pathname manipulations......Page 94
zipfile—Work with ZIP archives......Page 95
os—Miscellaneous operating system interfaces.......Page 96
readline—GNU readline interface......Page 97
HTMLParser—Simple HTML and XHTML parser......Page 98
poplib—POP3 protocol client......Page 99
shlex—Simple lexical analysis......Page 100
Debugging and Profiling......Page 101
codeop......Page 102
_winreg —Windows registry access......Page 103
MacPython OSA Librarys......Page 104
sunaudiodev—Access to Sun audio hardware......Page 105
Creating a Class......Page 106
An Actual Example......Page 107
The functions within our class......Page 108
Using the dog object......Page 109
Going Further......Page 110
Reviewing the Information......Page 111
XML Refresher......Page 112
Create the Class......Page 113
The getCurrents function......Page 114
The Output Function......Page 115
Add the Program Entry Point......Page 116
Index......Page 0
📜 SIMILAR VOLUMES
<p> <!--StartFragment--> <p style="margin-bottom:12pt;"><em><span style="font-size:12.0pt;font-family:'Times New Roman','serif';">The Python Quick Syntax Reference</span></em><span style="font-size:12.0pt;font-family:'Times New Roman','serif';"> is the “go to” book that contains an easy to read a
<p> <!--StartFragment--> <p style="margin-bottom:12pt;"><em><span style="font-size:12.0pt;font-family:'Times New Roman','serif';">The Python Quick Syntax Reference</span></em><span style="font-size:12.0pt;font-family:'Times New Roman','serif';"> is the “go to” book that contains an easy to read a
Learn how to use Python and its structures, how to install Python, and which tools are best suited for data analyst work. This book provides you with a handy reference and tutorial on topics ranging from basic Python concepts through to data mining, manipulating and importing datasets, and data anal