Python for beginners

Objectives

  • Learn the fundamentals of Python to develop simple applications (file input/output, graphical interface, databases)
đź“„ Program (PDF) đź“… View dates

Target Audience

  • Complete beginners
  • Adults undergoing career transition
  • Non-technical audiences

Learning Objectives

  • Write simple and structured Python scripts
  • Automate basic tasks
  • Read and write files (text, CSV)
  • Master control structures and collections
  • Understand and apply Object-Oriented Programming (OOP) concepts
  • Create and query a SQLite database using Python

Prerequisites

  • No prior programming knowledge required
  • Basic familiarity with computers (navigating folders, using a text editor)

Teaching Methods

  • Combination of theory (40%) and practice (60%)
  • Live demonstrations by the instructor
  • Progressive exercises and guided practical work
  • Integrative mini-projects at the end of each day
  • Course materials provided to participants (digital version)

Target Certification: RS6701 – Python Programming Language – CPF eligible

Detailed Program

DAY 1 — Introduction to Python and First Programs

  • Introduction to Python: history, philosophy, and business use cases
  • Environment setup: Python, VS Code, useful extensions
  • First script: print(), comments, running a program
  • Variables and data types: int, float, str, bool
  • Operators: arithmetic, comparison, and logical operators
  • User input: input() and type conversion
  • Best practices: variable naming, PEP8 conventions

â–  Practical exercises:
→ Lab 1: Simple calculator (addition, subtraction, multiplication, division)
→ Lab 2: Unit conversion program (km/miles, €/$, °C/°F)
→ Lab 3: Interactive quiz with final score

DAY 2 — Control Structures and Collections

  • Conditions: if, elif, else — syntax and indentation
  • Nested conditions: logical operators (and, or, not)
  • For loop: iterating over sequences, range() function
  • While loop: use cases, stopping conditions, infinite loop risks
  • Statements: break, continue, and else in loops
  • Lists: creation, indexing, slicing, main methods
  • Tuples: differences compared to lists
  • Dictionaries: key/value pairs, access, modification, iteration

â–  Practical exercises:
→ Lab 1: Guess the number game with hints
→ Lab 2: Shopping list manager (add, delete, display)
→ Lab 3: Mini phone directory using dictionaries

DAY 3 — Functions, Files, and Introduction to OOP

  • Defining functions: def, parameters, return values
  • Variable scope: local vs global
  • Default parameters: named arguments, *args, **kwargs
  • Reading text files: open(), read(), readlines()
  • Writing files: write(), 'w' and 'a' modes
  • CSV files: manipulation using the csv module
  • Error handling: try/except, common exception types
  • Why OOP? Limitations of procedural programming
  • First concepts: class, object, attribute, method
  • Creating your first class: class keyword, __init__(), self

â–  Practical exercises:
→ Lab 1: Utility function library (calculations, conversions)
→ Lab 2: First Contact class with attributes and display() method
→ Lab 3 (Mini-project): Complete contact manager — OOP version

DAY 4 — Advanced OOP and SQLite Databases

  • Inheritance: parent and child classes, method overriding, super()
  • Special methods: __str__, __repr__, __eq__, __lt__
  • Encapsulation: protected attributes, properties using@property
  • Assessment

    • Initial assessment quiz at the beginning of the training
    • Continuous assessment through practical exercises
    • Certificate of completion issued
    • ENI-PYTHON certification exam at the end of the training (90 minutes)

Scroll to Top