Python Book
🇺🇦 Stand with Ukraine🎓Training Suite
  • Book overview
  • Notes about this book
  • 1. Introduction to Python
    • What is Python
    • Basic syntax
    • Objects in Python
    • Python overview
    • Installation, IDEs etc.
    • ipython
    • Sources for self-learning
  • 2. Strings and numbers
    • Getting help
    • Introspection
    • Basic types
    • None object
    • Numbers
    • Strings
    • Unicode
    • String Formatting
    • Regular expressions
    • Sources for self-learning
  • 3. Containers
    • Data Structures
    • Lists
    • Tuples
    • Dictionaries
    • Sets
    • Conditions
    • Loops
    • Additional modules
    • Sources for self-learning
  • 4. Functions
    • Functions
    • Scopes of visibility
    • Generators
    • Lambdas
    • Type hints
    • Function internals
    • Sources for self-learning
  • 5. Functional Programming
    • Builtins
    • Iterable
    • Iterator
    • Functional Programming
    • Functools
    • Comprehensions
    • Additional modules
    • Sources for self-learning
  • 6. Code Styling
    • Zen of Python
    • Lint
    • PEP 8
    • Modules
    • Packages
    • Sources for self-learning
  • 7. OOP
    • OOP Basics
    • Code design principles
    • Classes
    • Method Resolution Order
    • Magic attributes and methods
    • Super
    • Sources for self-learning
  • 8. Decorators, Exceptions
    • Decorators
    • Exceptions
    • Sources for self-learning
  • 9. Testing
    • Basic Terminology
    • Testing theory
    • Dev unit testing vs QA automated testing
    • Best Practices
    • Doctest
    • Unittest
    • Test Runners
    • Pytest
    • Nose
    • Continuous Integration
  • 10. System Libs
    • Working with files
    • System libraries
    • Subprocess
    • Additional CLI libraries
Powered by GitBook
On this page

Was this helpful?

Edit on Git

Book overview

NextNotes about this book

Last updated 2 years ago

Was this helpful?

Hello, my name is Viktor Moyseyenko. I am from 🇺🇦 Ukraine.

This book is compilation of materials I've used in Python Training conducted by me over the years. I was polishing the materials collected here many times in order to get the most comprehensive and yet short Python learning experience possible.

Course itself written in a form of series of notebooks with slides to give learners interactive materials during presentation on each live session. And this book serves the purpose to be a "static" version of all slides kept in one place (and in fact the book is auto-generated from the slides I am using).

Short course overview:

This first session is an introduction to Python. It is "Bird's eye view" for this course.

In this chapter we'll learn about main aspects of Python basic types such as numbers and strings, how to work with them, their methods and attributes, and also - (which is very important to know from the beginning) how to read help and do basic introspection of any object.

This chapter describes sequences such as list and tuples, dictionaries and sets. Additionally it talks about loops and conditions as it is important arsenal for working with mentioned data structures.

This chapter describes functions in Python - how to create, use them, process passed parameters. Also it covers scopes of visibility, lambdas (anonymous functions), generators and some additional topics like functions internals and closures.

This chapters presents most important builtin functionality of Python. Additionally it covers important object called iterator which is capable of returning it's members one by one, nuances of it's creation and usage.

This chapter covers main styling guides and recommendations from PEP8.

This chapter covers main aspects of OOP realized in Python - classes, instances, method resolution, inheritance, class and instance methods. Also - magic methods, slots and methods overloading using super() function.

This chapter talks about Decorators (basics, chaining and parametrizing), lot of examples and tricky usecases (see Riddle and one-time decorator) and Exceptions.

The goal of this chapter is covering basic ideas of how testing is done in Python. Few main test frameworks discussed - doctest (for small projects) and unittest (xUnit/jUnit clone for medium and bigger sized projects).

In this session we will learn how to operate with files and directories in local filesystem - reading, writing, browsing, copying, moving and deleting.

#1.

#2.

#3.

#4.

#5.

#6.

#7.

#8.

#9.

#10.

Introduction to Python
Strings and numbers
Containers
Functions
Functional Programming
Code Styling
OOP
Decorators, Exceptions
Testing
System Libs
Jupyter
Super cool logo with Python-Ouroboros