Amazon cover image
Image from Amazon.com

Getting started with Python : understand key data structures and use Python in object-oriented programming / Fabrizio Romano, Benjamin Baka, Dusty Philips.

By: Contributor(s): Material type: TextTextSeries: Learning pathPublisher: Birmingham, UK : Packt Publishing, 2019Description: 1 online resource : illustrationsContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 1838559981
  • 9781838559984
Subject(s): Genre/Form: Additional physical formats: Print version:: Getting Started with Python : Understand Key Data Structures and Use Python in Object-Oriented ProgrammingDDC classification:
  • 005.133 23
LOC classification:
  • QA76.73.P98
Online resources:
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.
Holdings
Item type Current library Collection Call number Status Date due Barcode Item holds
eBook eBook e-Library EBSCO Computers Available
Total holds: 0

Description based on online resource; title from title page (Safari, viewed April 24, 2019).

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

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.

Added to collection customer.56279.3

Powered by Koha