Python - Basics

Inter-company training

Who is the training for?

All public

Duration

3,00 day(s)

Language(s) of service

EN FR

Prerequisites

Before attending this course, students must know and master a structured programming language like C, C++, Java.

Goals

This new three days training module lets the trainees know about the potential of Python as a programming language. Open to people who already know about any structured language (like C, C++ or Java), this course teaches how de design Python scripts, perform data treatments and how to maintain a Python script collection.

Contents

Module 1: Python Overview

  • Python History
  • Available IDE (s)

Module 2: Python object types

  • Numbers
  • Strings
  • Containers (Tuples, Lists, Dictionaries, Set)
  • Type properties

Module 3: Good practices

  • Writing rules, naming
  • Annotations
  • Doc strings
  • Comments
  • Structuring a Python file

Module  4: The instructions

  • Execution of a Python program, LGI rule
  • Sequential, conditional, loop programming
  • Definition and call of functions
  • Functions: definition / call / parameter management /returned values

Module 5: Error handling

  • Exceptions, mechanism of implementation
  • The traceback

Module 6: The standard Python library

  • The built-in functions, and those on the containers: map, filter, zip
  • The sys modules, os
  • The datetime, time modules

Module  7: Object-Oriented Programming

  • Classes
  • The object, instance of a class
  • The class and instance attributes
  • The structure of a Python object (functions dir, vars, the variable __dict__ functions getattr, setattr, delattr,  __slots__ interest )
  • Simple, multiple inheritance

Mode of organisation

Classroom Courses

These courses might interest you

EN
Day
On request
Computer language - Java language