Book description
Harness the power of Python objects and data structures to implement algorithms for analyzing your data and efficiently extracting information
Key Features
- Turn your designs into working software by learning the Python syntax
- Write robust code with a solid understanding of Python data structures
- Understand when to use the functional or the OOP approach
Book Description
This Learning Path helps you get comfortable with the world of Python. It starts with a thorough and practical introduction to Python. You'll quickly start writing programs, building websites, and working with data by harnessing Python's renowned data science libraries. With the power of linked lists, binary searches, and sorting algorithms, you'll easily create complex data structures, such as graphs, stacks, and queues. After understanding cooperative inheritance, you'll expertly raise, handle, and manipulate exceptions. You will effortlessly integrate the object-oriented and not-so-object-oriented aspects of Python, and create maintainable applications using higher level design patterns. Once you've covered core topics, you'll understand the joy of unit testing and just how easy it is to create unit tests.
By the end of this Learning Path, you will have built components that are easy to understand, debug, and can be used across different applications.
This Learning Path includes content from the following Packt products:
- Learn Python Programming - Second Edition by Fabrizio Romano
- Python Data Structures and Algorithms by Benjamin Baka
- Python 3 Object-Oriented Programming by Dusty Phillips
What you will learn
- Use data structures and control flow to write code
- Use functions to bundle together a sequence of instructions
- Implement objects in Python by creating classes and defining methods
- Design public interfaces using abstraction, encapsulation and information hiding
- Raise, define, and manipulate exceptions using special error objects
- Create bulletproof and reliable software by writing unit tests
- Learn the common programming patterns and algorithms used in Python
Who this book is for
If you are relatively new to coding and want to write scripts or programs to accomplish tasks using Python, or if you are an object-oriented programmer for other languages and seeking a leg up in the world of Python, then this Learning Path is for you. Though not essential, it will help you to have basic knowledge of programming and OOP.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
-
A Gentle Introduction to Python
- A proper introduction
- Enter the Python
- About Python
- What are the drawbacks?
- Who is using Python today?
- Setting up the environment
- Installing Python
- How you can run a Python program
- How is Python code organized?
- Python's execution model
- Guidelines on how to write good code
- The Python culture
- A note on IDEs
- Summary
- Built-in Data Types
- Iterating and Making Decisions
-
Functions, the Building Blocks of Code
- Why use functions?
- Scopes and name resolution
- Input parameters
- Return values
- A few useful tips
- Recursive functions
- Anonymous functions
- Function attributes
- Built-in functions
- One final example
- Documenting your code
- Importing objects
- Summary
-
Files and Data Persistence
- Working with files and directories
- Data interchange formats
- IO, streams, and requests
- Persisting data on disk
- Summary
- Principles of Algorithm Design
- Lists and Pointer Structures
- Stacks and Queues
- Trees
- Hashing and Symbol Tables
- Graphs and Other Algorithms
- Searching
- Sorting
- Selection Algorithms
- Object-Oriented Design
- Objects in Python
- When Objects Are Alike
- Expecting the Unexpected
- When to Use Object-Oriented Programming
- Python Object-Oriented Shortcuts
- The Iterator Pattern
- Python Design Patterns I
- Python Design Patterns II
- Testing Object-Oriented Programs
- Other Books You May Enjoy
Product information
- Title: Getting Started with Python
- Author(s):
- Release date: February 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838551919
You might also like
book
Advanced Python Programming
Create distributed applications with clever design patterns to solve complex problems Key Features Set up and …
book
Mastering Python for Bioinformatics
Life scientists today urgently need training in bioinformatics skills. Too many bioinformatics programs are poorly written …
video
Python Programming Language
6+ Hours of Video Instruction Python Programming Language LiveLessons provides developers with a guided tour of …
book
Advanced Python Programming - Second Edition
Write fast, robust, and highly reusable applications using Python's internal optimization, state-of-the-art performance-benchmarking tools, and cutting-edge …