Intermediate Python
Free

Intermediate Python

By Muhammad Yasoob Ullah Khalid
Free
Book Description

Python is an amazing language with a strong and friendly community of pro- grammers. However, there is a lack of documentation on what to learn after getting the basics of Python down your throat. Through this book I aim to solve this problem. I would give you bits of information about some interesting topics which you can further explore.



The topics which are discussed in this book open up your mind towards some nice corners of Python language. This book is an outcome of my desire to have something like this when I was beginning to learn Python.


If you are a beginner, intermediate or even an advanced programmer there is something for you in this book.

Read online at Python Tips or get the donation version at Gumroad.

Table of Contents
  • Intermediate Python
  • *args and **kwargs
    • Usage of *args
    • *args and **kwargs
    • Usage of **kwargs
    • Using *args and **kwargs to call a function
    • When to use them?
  • Debugging
  • Generators
    • Iterable
    • Iterator
    • Iteration
    • Generators
    • Generators
  • Map & Filter
    • Map
    • Filter
    • Map & Filter
  • set Data Structure
  • Ternary Operators
  • Decorators
    • Everything in python is an object:
    • Defining functions within functions:
    • Returning functions from within functions:
    • Giving a function as an argument to another function:
    • Writing your first decorator:
      • Writing your first decorator:
      • Use-cases:
      • Authorization
      • Logging
    • Decorators
  • Global & Return
    • Global & Return
    • Multiple return values
  • Mutation
  • __slots__ Magic
  • Virtual Environment
  • Collections
    • defaultdict
    • counter
    • deque
    • namedtuple
    • enum.Enum (Python 3.4+)
    • Collections
  • Enumerate
  • Object introspection
    • dir
    • type and id
    • inspect module
    • Object introspection
  • Comprehensions
    • list comprehensions
    • dict comprehensions
    • set comprehensions
    • Comprehensions
  • Exceptions
    • Handling multiple exceptions:
      • Handling multiple exceptions:
      • finally clause
      • try/else clause
    • Exceptions
  • Lambdas
  • One-Liners
  • For - Else
    • else clause:
    • For - Else
  • Open function
  • Targeting Python 2+3
  • Coroutines
  • Function caching
    • Python 3.2+
    • Python 2+
    • Function caching
  • Context managers
    • Implementing Context Manager as a Class:
    • Handling exceptions
    • Implementing a Context Manager as a Generator
    • Context managers
    No review for this book yet, be the first to review.
      No comment for this book yet, be the first to comment
      You May Also Like
      Also Available On
      App store smallGoogle play small
      Categories
      Curated Lists
      • Pattern Recognition and Machine Learning (Information Science and Statistics)
        by Christopher M. Bishop
        Data mining
        by I. H. Witten
        The Elements of Statistical Learning: Data Mining, Inference, and Prediction
        by Various
        See more...
      • CK-12 Chemistry
        by Various
        Concept Development Studies in Chemistry
        by John Hutchinson
        An Introduction to Chemistry - Atoms First
        by Mark Bishop
        See more...
      • Microsoft Word - How to Use Advanced Algebra II.doc
        by Jonathan Emmons
        Advanced Algebra II: Activities and Homework
        by Kenny Felder
        de2de
        by
        See more...
      • The Sun Who Lost His Way
        by
        Tania is a Detective
        by Kanika G
        Firenze_s-Light
        by
        See more...
      • Java 3D Programming
        by Daniel Selman
        The Java EE 6 Tutorial
        by Oracle Corporation
        JavaKid811
        by
        See more...