HemSök efter kurserPython 3 - Intermediate

Python 3 – Intermediate

This course gives you an introduction to more advanced concepts in the Python language and starts where the course "Python programming" ends.

During the course we discuss and highlights the differences in between Python v2 and v3. Exercises are done using Python v3. The exercises could also be done usinge Python v2 if requested.


Plats
Göteborg
Stockholm

Utbildningsformer
Classroom
Remote

Längd
2 dagar

Pris
14900 kr

Target Group

Programmers, testers and others involved in projects that will involve Python as a coding language.

Prerequisites

Basic understanding of the Python language and some experience of programming Python. Knowledge similar to the course "Python 3 - Fundamentals".

Kursinnehåll

Day 1

- Datatypes and the object hierarchy

- Functions

  • The func-object
  • The def keywords
  • Lambda functions
  • Nested functions
  • Closures
  • Decorators

- Iterators

  • Fast enumeration
  • The iteration protocol
  • Iterables
  • Iterators
  • The iteration interface      
  • Iterators as separate objects

- Comprehensions

  • List Comprehensions
  • Nested comrehensions
  • Dict Comprehensions
  • Set Comprehensions                                   

Day 2

 - Advanced iterators

  • Generator Expressions
  • Generator Comprehensions
  • Generator functions
  • Generator objects
  • The Yield keyword
  • Generator iterators                    

- Objects, classes and instances

  • Old-style vs new-style classes
  • Magic special methods
  • Instance attributes
  • Class attributes
  • Attribute lookup chain
  • Emulate built-in objects
  • Creating callables
  • Creating containers
  • Rich comparison methods
  • @classmethod
  • @staticmethod
  • Abstract classes
  • @property
  • Static variable behavior    
  • __slots__

- Sorting & Reversing

  • Sorting lists
  • Sorting dicts
  • Sorting instances
  • Sorting iterables
  • Operator methodcaller
  • Reversing strings
  • Reversing lists
  • Reversing iterables