Kurser

Kursusadministration

Brug for hjælp?

  • Gregersensvej 8
  • 2630 Taastrup
Google MapsApple MapsRejseplanen
  • Forskerparken Fyn, Forskerparken 10F
  • 5230 Odense M
Google MapsApple MapsRejseplanen
  • Teknologiparken Kongsvang Allé 29
  • 8000 Aarhus C
Google MapsApple MapsRejseplanen
  • NordsøcentretPostboks 104
  • 9850Hirtshals
Google MapsApple MapsRejseplanen
  • Gammel Ålbovej 1
  • 6092Sønder Stenderup
Google MapsApple MapsRejseplanen
Python_online_fundamental
4 dages virtual classroom

Python 3 Programming

Bliv introduceret til programmeringssproget Python 3, med dette kursus. Kurset er specifik designet til programmører, der vedligeholder et projekt i, eller skal til at overfører projekter til Python 3.

Virtuelle_kurser_ikoner

Virtuelt kursus

Dette virtuelle kursus foregår på din egen computer live via GoToMeeting med en engelsktalende underviser. Under kurset har du mulighed for at stille spørgsmål, deltage i diskussioner, se whiteboard på din skærm og lave lab øvelser.

Get introduced to the Python 2 programming language

This is a technical course that introduces the Python 3 programming language. It is an instructor led presentation and hands on exercises course using MS Windows, but is equally applicable to other platforms such as Linux.

Prerequisites

  • No previous knowledge of Python is assumed, although delegates should be familiar with at least one programming language.
  • Experience of another scripting language, such as Perl or PHP, will be an advantage, as will previous experience of object oriented programming.

Target Audience

This course is suitable for programmers starting new projects in Python 3, or for those porting existing applications from Python 2.

Content

This course teaches you how to:

  • Use the Python interactive interpreter to write and run Python 3 programs.
  • Understand Python 3 language elements.
  • Exploit the rich library of Python libraries and modules.
  • Appreciate the differences between Python 2 and Python 3.
  • Use Python 3 operators and built-in functions.
  • Understand procedural control flow in Python 3.
  • Program file input/output, including persistent data objects.
  • Create well organized and efficient code using functions and modules.
  • Use Object Oriented programming techniques in Python 3.
  • Build robust applications with error trapping and reporting.
  • Run and control other programs from Python.
  • Take advantage of multi-core processors with multiprocessing.

The course is structured into chapters, like so:

Chapter 1: Introduction to Python 3
  • What is Python?
  • What is Python 3?
  • Why Python?
  • Performance downsides
  • The community
  • Running Python interactively
  • Python scripts
  • Python help
Chapter 2: Fundamental Variables
  • Python is Object Oriented
  • Python variables
  • Variable names
  • Type specific methods
  • Operators and type
  • Augmented assignments
  • Python types
  • Switching types
Chapter 3: Flow Control
  • Python conditionals
  • Indentation
  • What is truth?
  • Sequence and collection tests
  • Object types
  • While loops
  • Loop control statements
  • For loops
  • enumerate
  • Counting 'for' loops
  • Unconditional flow control
Chapter 4: String Handling
  • Python 3 strings
  • The print function
  • Cooking strings
  • String concatenation
  • 'Quotes'
  • String methods
  • String tests
  • Slicing a string
  • String methods - split and join
Chapter 5: Collections
  • Python types - reminder
  • Useful tuple operations
  • Python lists
  • Tuple and list slicing
  • Extended iterable unpacking
  • Removing items by position
  • Removing list items by content
  • Sorting
  • Set operators
  • Python dictionaries
  • Dictionary values
  • Removing items from a dictionary
Chapter 6: Regular Expressions
  • Python regular expressions
  • Elementary extended RE meta-characters
  • Regular expression objects
  • Regular expression substitution
  • Regular expression split
  • Matching alternatives
  • Repeat quantifiers
  • Quantifiers
  • Parentheses groups
  • Global matches
Chapter 7: Data Storage and File Handling
  • New file objects
  • Reading files into Python
  • Reading tricks
  • Filter programs - fileinput module
  • Binary mode
  • Writing to files from Python
  • Standard streams
  • Build some shelves
  • Compression
  • Database interface overview
  • Example - SQLite from Python
Chapter 8: Functions
  • Python functions
  • Function parameters
  • Variadic functions
  • Assigning default values to parameters
  • Named (keyword) parameters
  • Variables in nested functions
  • Function documentation
  • Lamdba functions
  • Lambda as a sort key
  • Lambda in re.sub
Chapter 9: Advanced Collections
  • Advanced list functions - filter
  • List comprehensions
  • Set and dictionary comprehensions
  • Lazy lists
  • Generators
  • Generator objects and next - coroutines
  • List comprehensions as generators
  • Copying collections - problem
  • Copying collections - slice solution?
  • Copying collections - deepcopy solution
Chapter 10: Modules and Packages
  • What are modules and packages?
  • Multiple source files
  • Importing a module
  • Importing names
  • Directories as packages
  • Writing a module
Chapter 11: Classes and OOP
  • Classes and OOP
  • Object-Oriented terminology
  • Object-Oriented Programming
  • Defining classes
  • Defining methods
  • Constructing an object
  • Special methods
  • Properties and decorators
  • Inheritance
  • Inheritance terminology
Chapter 12: Error Handling and Exceptions
  • Writing to stderr
  • Controlling warnings
  • Exception handling
  • Exception syntax
  • Multiple exceptions
  • Exception arguments
  • A common mistake
  • The raise statement
  • Raising our own Exceptions
  • assert
Chapter 13: Multitasking
  • Family life
  • Creating a process from Python
  • Old interface examples
  • Waiting for a child
  • Using the subprocess module
  • The subprocess.Popen class
  • Processes and threads
  • Very basic threads in Python
  • Using the multiprocessing module
  • Queue objects
Chapter 14: The Python Standard Library
  • The Standard Library
  • Example - converting Python 2 scripts to Py3
  • Operating System interfaces
  • System specific attributes
  • Signal handling
  • Converting a signal to an exception
  • The configparser module
  • The datetime module and friends
  • The platform module
  • External function interface

Læs mere om vores virtuelle kurser og se svar på dine spørgsmål (FAQ).

Søgte du et andet virtuelt kursus?

Vi tilbyder virtuelle kurser inden for mange forskellige områder. Kontakt os på tlf. 72203000 eller kurser@teknologisk.dk, så vi kan hjælpe med at imødekomme dit behov.

Har du faglige spørgsmål så kontakt
Andre kurser