Taming Python: All You need to know to be comfortable writing Python Scripts
By Dr. (h.c.) Khaleel A. Shariff
English | 2021 | ASIN : B08WV3PRMD | 270 Pages | EPUB | 48 MB
By Dr. (h.c.) Khaleel A. Shariff
English | 2021 | ASIN : B08WV3PRMD | 270 Pages | EPUB | 48 MB
This book is written by Dr. (h.c.) Khaleel A. Shariff who has been in the IT industry since early 1990s. Based out of Bangalore, the Silicon Valley of India, Dr. Khaleel has conducted training programs on a variety of technologies from operating systems inclusive of UNIX, Linux, Windows, OS2 to name a few. He has conducted training programs on programming languages inclusive of C, C++, Perl, Python, Tcl/Tk apart from others. He has conducted training programs on databases inclusive of Oracle, Sybase, DB2, MySQL, MS SQL Server apart from others. He was the only trainer outside America to conduct the Cisco IOS Boot camp between 2011 & 2017. Some of the Fortune 500 companies where he has conducted Python training programs include IBM, Cisco, Huawei, Intel, Deloitte, Siemens, Nomura, Ericsson Global, ANZ, HCL, Wall Mart Labs, Sasken Technologies, Fidelity, Wells Fargo, Philips Innovation, Fujitsu & Carl Zeiss. First of all, this book focuses on breaking the mental blocks to make sure the learner, with an open mind, is able to understand all the concepts. The book focuses on making sure the absolute fundamentals of Python which every Python developer needs, are introduced in a semi technical language to make sure the learner not only finds Python easy but also finds programming as a whole very easy.The code examples in the book are kept small & simple encouraging the learner to try out the code examples. The book is spread over 9 chapters. The 9 chapters are as follows:Table of Contents ICE Breaking, finding friends in the new land of Python programming Do you find Programming difficult?Why is programming difficult for me?What is experience?4 stages of application development 4 Generations of Programming Languages Cross platform application developmentAssociating an extension with an application… the windows wayExecuting a program on the UNIX/Linux boxFeatures of PythonInterpreted languageFree & Open sourceExtensible Purely object orientedNo limits programming languageGUI supportFriends in the new land (Getting Help)dir()dir(__builtins__)dir(obj)help(object)type(object)help(class)help()Statements, operators & control flow statementsRunning Python StatementsWriting Python ScriptsExecuting Python Scripts on the Windows OSBuilt-in functionsIntroduction to a few basic built-in functionsOperatorsArithmetic OperatorsComparison OperatorsLogical OperatorsAssignment operatorsThe False & True conditionsControl Flow StatementsGeneral Syntax - IndentationConditionalsLoopsLoop Control StatementsData Structures in PythonData StructuresQuick introduction to Classes and Objects Lists What is happening in the memory?Tuple StringsDictionary keysvaluesitemsAdding items Deleting itemsSetsList ComprehensionWorking with FilesUsing FilesBrief introductionOpening the fileClosing the fileReading from the fileWriting to the fileQuerying the current file pointer positionRepositioning the file pointerModularity with functionsWriting FunctionsDefining FunctionDocumentation: The DocStringReturning from a functionProcessing parametersKeyword argumentsDefault argumentsProcessing any number of parametersProcessing any number of keyword argumentsNested functions and scope of symbolsThe global keywordUses of the global statementRecursive functionsQuerying & changing the recursion depthCall by valueCall by referenceLambdaModulesimporting Modules & symbols from modules & aliasDeveloping Modules & PackagesImportance of __name____init__.py file for documentation & functions in a packageObject Oriented Programming __new__, __init__, __del__Inheritance - Single, Multiple & MultilevelPublic & Private Data MembersOperator Overloading __add__, __mul__, __eq__, et alException HandlingHandling ExceptionsRaising ExceptionsUser Defined ExceptionsDebugging Using pdb