Python is an amazing language with a strong and friendly community of programmers. 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.
Please note that this book is not a tutorial and does not teach you Python. The topics are not explained in depth, instead only the minimum required information is given.
I am sure you are as excited as I am so let’s start!
Conditions of Use
This book is licensed under a Creative Commons License (CC BY-NC-SA). You can download the ebook Intermediate Python for free.
- Title
- Intermediate Python
- Author(s)
- Yasoob Khalid
- Published
- 2020-09-20
- Edition
- 1
- Format
- eBook (pdf, epub, mobi)
- Pages
- 75
- Language
- English
- License
- CC BY-NC-SA
- Book Homepage
- Free eBook, Errata, Code, Solutions, etc.
1. *args and **kwargs 1.1. Usage of *args 1.2. Usage of **kwargs 1.3. Using *args and **kwargs to call a function 1.4. When to use them? 2. Debugging 3. Generators 3.1. Iterable 3.2. Iterator 3.3. Iteration 3.4. Generators 4. Map, Filter and Reduce 4.1. Map 4.2. Filter 4.3. Reduce 5. set Data Structure 6. Ternary Operators 7. Decorators 7.1. Everything in Python is an object: 7.2. Defining functions within functions: 7.3. Returning functions from within functions: 7.4. Giving a function as an argument to another function: 7.5. Writing your first decorator: 7.6. Decorators with Arguments 8. Global & Return 8.1. Multiple return values 9. Mutation 10. __slots__ Magic 11. Virtual Environment 12. Collections 12.1. defaultdict 12.2. OrderedDict 12.3. Counter 12.4. deque 12.5. namedtuple 12.6. enum.Enum (Python 3.4+) 13. Enumerate 14. Zip and unzip 15. Object introspection 15.1. dir 15.2. type and id 15.3. inspect module 16. Comprehensions 16.1. list comprehensions 16.2. dict comprehensions 16.3. set comprehensions 16.4. generator comprehensions 17. Exceptions 17.1. Handling multiple exceptions: 18. Classes 18.1. 1. Instance & Class variables 18.2. 2. New style classes 18.3. 3. Magic Methods 19. Lambdas 20. One-Liners 21. for/else 21.1. else Clause 22. Python C extensions 22.1. CTypes 22.2. SWIG 22.3. Python/C API 23. open Function 24. Targeting Python 2+3 25. Coroutines 26. Function caching 26.1. Python 3.2+ 26.2. Python 2+ 27. Context Managers 27.1. Implementing a Context Manager as a Class: 27.2. Handling Exceptions 27.3. Implementing a Context Manager as a Generator