Limit search to available items
Book Cover
E-book
Author Romano, Fabrizio, author

Title Getting started with Python : understand key data structures and use Python in object-oriented programming / Fabrizio Romano, Benjamin Baka, Dusty Philips
Published Birmingham, UK : Packt Publishing, 2019

Copies

Description 1 online resource : illustrations
Series Learning path
Learning path.
Contents Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Chapter 1: A Gentle Introduction to Python; A proper introduction; Enter the Python; About Python; Portability; Coherence; Developer productivity; An extensive library; Software quality; Software integration; Satisfaction and enjoyment; What are the drawbacks?; Who is using Python today?; Setting up the environment; Python 2 versus Python 3; Installing Python; Setting up the Python interpreter; About virtualenv; Your first virtual environment; Your friend, the console
How you can run a Python programRunning Python scripts; Running the Python interactive shell; Running Python as a service; Running Python as a GUI application; How is Python code organized?; How do we use modules and packages?; Python's execution model; Names and namespaces; Scopes; Objects and classes; Guidelines on how to write good code; The Python culture; A note on IDEs; Summary; Chapter 2: Built-in Data Types; Everything is an object; Mutable or immutable? That is the question; Numbers; Integers; Booleans; Real numbers; Complex numbers; Fractions and decimals; Immutable sequences
Strings and bytesEncoding and decoding strings; Indexing and slicing strings; String formatting; Tuples; Mutable sequences; Lists; Byte arrays; Set types; Mapping types -- dictionaries; The collections module; namedtuple; defaultdict; ChainMap; Enums; Final considerations; Small values caching; How to choose data structures; About indexing and slicing; About the names; Summary; Chapter 3: Iterating and Making Decisions; Conditional programming; A specialized else -- elif; The ternary operator; Looping; The for loop; Iterating over a range; Iterating over a sequence; Iterators and iterables
Iterating over multiple sequencesThe while loop; The break and continue statements; A special else clause; Putting all this together; A prime generator; Applying discounts; A quick peek at the itertools module; Infinite iterators; Iterators terminating on the shortest input sequence; Combinatoric generators; Summary; Chapter 4: Functions, the Building Blocks of Code; Why use functions?; Reducing code duplication; Splitting a complex task; Hiding implementation details; Improving readability; Improving traceability; Scopes and name resolution; The global and nonlocal statements
Input parametersArgument passing; Assignment to argument names doesn't affect the caller; Changing a mutable affects the caller; How to specify input parameters; Positional arguments; Keyword arguments and default values; Variable positional arguments; Variable keyword arguments; Keyword-only arguments; Combining input parameters; Additional unpacking generalizations; Avoid the trap! Mutable defaults; Return values; Returning multiple values; A few useful tips; Recursive functions; Anonymous functions; Function attributes; Built-in functions; One final example; Documenting your code
Summary This Learning Path is a thorough and practical introduction to Python. You will learn all about Python data structures, its most common algorithms, and its objects, and use all these to create clever applications that will transform your business
Notes Online resource; title from title page (Safari, viewed April 24, 2019)
Subject Python (Computer program language)
Application software -- Development.
Application software -- Development
Python (Computer program language)
Form Electronic book
Author Baka, Benjamin, author
Philips, Dusty, author
ISBN 1838559981
9781838559984