About This Book This book covers all basic Python syntaxes ( 400 examples, 400 outputs, 400 explanations ) . 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 future, the Python Syntax Book can provide great help for coding both in our study and our work . Where can you find a book with more than 400 examples, more than 400 outputs, and more than 400 explanations in the world? Only right here!
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 chdir chr() class class BaseClass clear() close command prompt comment 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 discard() divmod() double quotes dumps() elif else encode() endwith() enumerate() environment variable evel() except 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 get() getattr() getcwd() global hasattr() syntax hash() help() header hex() http id() if if if-elif if / else import file import calendar import module import os import re import smtplib ...... ...... ...... ...... zfill() zip() and much more ......
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