Python comes with a lot of built-in functions. They are available anywhere and you can get a list of them by inspecting the builtins
module with dir(__builtins__)
, or by going to the official Python documentation. Unfortunately, I don't have the room to go through all of them here. We've already seen some of them, such as any
, bin
, bool
, divmod
, filter
, float
, getattr
, id
, int
, len
, list
, min
, print
, set
, tuple
, type
, and zip
, but there are many more, which you should read at least once. Get familiar with them, experiment, write a small piece of code for each of them, and make sure you have them at your finger tips so that you can use them when you need them.
Getting Started with Python
By :
Getting Started with Python
By:
Overview of this book
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
Table of Contents (31 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Free Chapter
A Gentle Introduction to Python
Built-in Data Types
Iterating and Making Decisions
Functions, the Building Blocks of Code
Files and Data Persistence
Principles of Algorithm Design
Lists and Pointer Structures
Stacks and Queues
Hashing and Symbol Tables
Graphs and Other Algorithms
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
Index
Customer Reviews