This book covers all basic Python syntaxes . We can quickly reference the most helpful programming syntaxes, such as common command syntax, string function syntax, collection function syntax, class & object syntax……; all these syntaxes are very useful for programming . We can take this book as a basic syntax manual because its entries are arranged alphabetically so that we can easily reference the important syntax . Nowadays or in the future, the Python Syntax Book can provide great help for coding both in our study and our work .
Disclaimer This book is intended as a basic syntax manual only; it cannot include all entries on this subject . Its purpose is as a supplement for a cheat sheet book, not as a whole Python dictionary .
Table of Contents
Syntax Chart abs() add() all() and any() append append() as ascii() assert() bin() bool() break bytearray() bytes() calendar callable() capitalize() casefold() casting ceil() center() character character chdir chr() class class BaseClass clear() close command prompt comment compile() compile() complex() connect lists connect strings continue convert data type copy() count() count() decode() def functionName( ) def functionName(arguments) del delattr() def main( ) del myVariable demjson.decode(json) demjson.encode(data) dict() dict.keys() dict.values() dictionary difference() difference_update() dir() directory directory directory discard() divmod() double quotes dumps() elif else encode() endwith() enumerate() environment variable environment variable evel() except exception exception exception exec() expandtabs() extend() file file.close() fileno() filter() finally find() findall() finditer() float() floor() format printing from anotherFile import* from module import * fromkeys() frozenset() function function with arguments ...... ...... zfill() zip()
Appendix Arithmetic Operator Chart Assignment Operators Chart Comparison Operators Chart Logical Operators Chart Bitwise Operators Convert Data Type Chart Math Function Chart List Functions Chart Tuple Functions Chart Set Functions Chart Dictionary Functions Chart Data Structure Difference Chart Escape Characters Chart Operation Strings Chart Testing Functions Chart Formatting Functions Chart Stripping Functions Chart Splitting Functions Chart Searching Functions Chart String Functions (1) Chart String Functions (2) Chart Regular Expressions Chart Format String Chart Open File’s Mode Chart
Useful for devs that need to simply get better and improve at writing great code from memory and taking into account all user's preferences and requirement specifications.