# Python Intermediate

## About

- Level: Intermediate
- Lectures: 40 hours
- Self-study: 20 hours
- Exercises: 394
- Lines of code to write: 1006
- Format: e-learning + weekly online meeting with the instructor
- Language: English or Polish

## Description

Move beyond short scripts and make better use of Python's standard tools. Practice text encodings, dates and time zones, iterators, file formats, logging, typing, and dataclasses. Exercises connect these topics through the everyday work of reading data, transforming it, and organizing code.

## Advantages

Learn to handle awkward inputs and edge cases that often cause bugs. Clearer data structures, consistent logging, and reliable file handling make your programs easier to investigate, maintain, and extend.

## Target Audience

- Python users comfortable with functions, collections, and basic scripts.
- Developers working with files, automation, and data exchange.
- Analysts and researchers preparing to maintain larger Python projects.

## Format

Learn through short videos and worked examples, then apply each topic in coding exercises. Automated checks help you test your solutions, and a progress spreadsheet helps you see what to work on next.

Weekly online meetings give you time for questions, code reviews, and working through difficult exercises with the instructor. Downloadable code, exercise templates, and reference notes support your independent practice.

Our trainers prepare the teaching materials from their professional experience. The materials have been developed since 2015, with more than 28,000 automated tests checking the code examples. Training is available in English or Polish.

## Course Outline

1. String:

   - Print vs Pprint
   - String literals
   - String builtin library
   - Escape sequences
   - String interpolation
   - String formatting
   - Encoding (ASCII, ASCII-ext, UTF-8, CP1250, ISO-8859-2)
2. Syntax:

   - Underscore
3. Star Expressions:

   - Starred assignment (unpacking)
   - API definition
   - Parameter unpacking (`*args`, `**kwargs`)
   - Argument unpacking (`*args`, `**kwargs`)
4. Enum:

   - Introduction
   - Types: Enum, StrEnum, IntEnum, Flag
   - Validators: auto, verify, check
   - Builtin: HTTPStatus, HTTPMethods
   - Examples of usage
5. Pattern Matching:

   - Introduction to syntax
   - Patterns: literal, or, wildcard, capture, constant
   - Patterns: sequence, mapping, class
   - Patterns: guard and subpattern
6. Regular Expressions:

   - Syntax: literals, negation, anchors, categories, quantifiers
   - Expressions: exact, greedy and lazy
   - Multiline: searching, unicode, ascii
   - Groups: named, positional, non-capturing, backreferences
   - Using regular expressions in Python: findall, finditer, search, match, sub, split, compile
7. Dates and Time Zones:

   - Creating date objects, getting current date and time – datetime
   - ISO-8601 standard, parsing and formatting – strptime, strftime
   - Time and date offsets – timedelta
   - Working with timestamps – time, datetime
   - Calendar handling – calendar
   - Time zone handling – zoneinfo
8. Iterators:

   - How they work, the yield keyword, running them, getting results
   - Reversed, range, enumerate, zip
   - Product, permutations, count, chain, cycle
   - Itertools builtin module
9. Pathlib:
10. Paths: Absolute, Relative, POSIX path, Windows path problem
11. Directories: creation, modification, searching, deletion
12. Files: creation, modification, searching, deletion, metadata
13. Logging:

    - Usage and logging levels
    - Warnings and marking as deprecated (deprecation)
    - Basic and file-based configuration
    - Formatters, handlers
    - Log rotation and optimization
14. Locale:

    - i18n, l10n
    - locale
    - Formats, decimal separator, thousand separator, currency symbol
15. Pickle Format:

    - Object serialization and deserialization
    - Writing to a file, reading from a file
    - Protocol versions, compatibility, and security
16. TOML Format:

    - Format specifics and common issues
    - Reading data
    - Configuration files
17. CSV Format:

    - Format specifics and common issues
    - Writing and reading flat data
    - Writing and reading relational data
18. JSON Format:

    - Format specifics and common issues
    - Writing and reading simple data
    - Encoder and decoder for dates and complex objects
19. Modules:

    - Virtual environments – venv
    - pyproject.toml file
    - Dependency management – pip, requirements.txt
20. Typing:

    - Types: basic, advanced, optional, union, literal
    - Collections: lists, tuples, sets, maps, nested
    - Type aliases
    - Callable: functions, parameters, return, exceptions, iterators
    - Classes, instances, class and instance variables, methods, inheritance
    - Object relationships: composition, aggregation, forward reference
21. Dataclasses:

    - Definition, syntax, basic types, sequences, mappings
    - Relationships and nested dataclasses
    - Post-init, (im)mutable attributes, field, metadata
    - Parameters, helpers, inheritance, introspection

## Our Experience

AATC trainers have taught software engineering since 2015, delivering more than 11,000 hours of training to over 32,000 students worldwide. The exercises draw on that teaching experience and professional projects.

## Prerequisites

- Basic knowledge of Python programming
- Familiarity with using an IDE (e.g., PyCharm, VSCode)
- Familiarity with using version control systems (e.g., Git)

## Setup

- Newest version of Python
- IDE of your choice (e.g., PyCharm, VSCode)
- Git installed and configured
- GitHub account
- Web browser (e.g., Chrome, Firefox, Safari, etc.)

## Related Courses

- [Python Basics](<https://aatc.pl/software/python/basics/index.md>)
- [Python Intermediate](<https://aatc.pl/software/python/intermediate/index.md>)
- [Python Advanced](<https://aatc.pl/software/python/advanced/index.md>)
- [Design Patterns](<https://aatc.pl/software/engineering/design-patterns/index.md>)
- [Profiling](<https://aatc.pl/software/engineering/profiling/index.md>)
- [Refactoring](<https://aatc.pl/software/engineering/refactoring/index.md>)
- [Testing](<https://aatc.pl/software/engineering/testing/index.md>)
- [DevOps](<https://aatc.pl/software/engineering/devops/index.md>)
- [Regular Expressions](<https://aatc.pl/software/engineering/regex/index.md>)
- [All Courses](<https://aatc.pl/software/index.md>)

## Date

This course is scheduled on demand. Contact us with your preferred dates and group size so we can check availability and arrange a suitable session.

## Contact

Email [info@aatc.pl](<mailto:info@aatc.pl>) for help with program details, preparation, or booking.

## Apply

To apply, email [info@aatc.pl](<mailto:info@aatc.pl>) with your name, the program you are interested in, and your preferred dates.
