This three day course is designed for developers with experience of other languages who need to get up to speed on Python. [+]
K-tech er et kompetansesenter på Kongsberg som startet opp i 2008 med Kongsberg Defence & Aerospace, Technip FMC og GKN Aerospace som våre eiere. Vi er en kursleverandør som tilbyr kvalitetssikrede kurs innenfor en rekke sentrale områder som er etterspurt av industrien i Norge.
This three day course is designed for developers with experience of other languages who need to get up to speed on Python. At the end of this course the students will know the essentials of the Python language, how to use Python's module system to structure code, and how to approach the development of Python programs. The class will focus on Python 3, unless Python 2 is specifically requested.
Rather than working bottom-up, this course starts with analyzing and understanding working examples. This way developers will understand the various interdependent techniques in situ rather than in isolation.
We start immediately with working programs.
Testing is integral to our approach.
Expect to get your hands dirty! We work with realistic examples that help you gain knowledge and practice techniques applicable to building substantive applications. You'll be writing code with tests under plausible constraints.
We encourage maintainability over cleverness.
Course leaders have over a decade of experience.
Day 1 – Getting Started
Setting up your Python environment
Writing and running your first Python program
Importing modules from the standard library
Scalar types: int, float, None, and bool
While loops and for loops
Strings and bytes objects
The basics of lists and dictionaries
Creating, running, and importing modules
Defining functions and return values
Distinguishing module import and module execution
The Python execution model
Main functions and command line arguments
Day 2 – Fundamentals
Argument passing and function arguments in detail
Python's type system
Everything is an object
Common collections: tuple, string, range, and list
Growing, sorting, repeating, and reversing lists
Dictionaries and sets
Exceptions: try, except, raise, and finally
Exceptions in APIs and protocols
List, set, and dictionary comprehensions
Generators, lazy evaluation, and infinite sequences
Day 3 – Object Orientation
Instance methods, initializers, and implementation details
OO With function objects
Polymorphism and duck typing
Inheritance and implementation sharing
Reading, writing, and appending to text and binary les
Context managers and with-blocks
Testing with the unittest module
Debugging with PDB
Distributing your programs
Installing third-party modules