This book covers 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
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() flush() for for var in range(n1, n2) format() format() format printing from anotherFile import* from module import * fromkeys() frozenset() function function with arguments ...... ...... zip()