Python: Programming, Automation and Data Analysis
Learn Python from scratch up to professional use: language basics, functions, modules, files, objects, administration scripts, APIs, data analysis, testing and security, up to a complete sales analysis tool for an argan cooperative.
A MasterLinux course · Original text
What you will learn
- Install Python, use the interpreter, write and run scripts, and isolate each project in a virtual environment
- Master basic types, strings, f-strings, conditions and loops
- Organize data with lists, tuples, dictionaries, sets and comprehensions
- Write clean, documented functions, then split a program into modules and packages
- Read and write text, CSV and JSON files, and handle errors with exceptions
- Model a business domain with classes, inheritance and dataclasses
- Automate Linux server administration and talk to HTTP APIs
- Analyze sales, test your code and apply security best practices
Course content
14 lessons · 16 h 15 minSection 1 — Language basics
Section 2 — Structuring your code
- Fonctions : paramètres, valeurs par défaut, *args, **kwargs, portée et docstrings 1 h 5 min
- Modules, paquets et bibliothèque standard : os, pathlib, datetime, json, csv 1 h 10 min
- Fichiers et exceptions : with, try/except/finally, lever ses propres exceptions 1 h 5 min
- Programmation orientée objet : classes, héritage et dataclasses 1 h 10 min
Section 3 — Python at work
- Automatiser l'administration système : subprocess, shutil, logs et argparse 1 h 15 min
- Requêtes HTTP et API : urllib, requests, JSON et une petite API (FastAPI en présentation) 1 h 15 min
- Données : CSV, statistiques et pandas en présentation 1 h 15 min
- Tests et qualité : unittest, pytest, typage, ruff et black 1 h 10 min
Section 4 — Security
Section 5 — Project
Requirements
- No programming prerequisites
- Able to use a computer and copy files
- Linux terminal basics help for the labs (the “Fundamentals” course is recommended)
Who is this course for?
- Complete beginners who want to learn a first language that is useful everywhere
- System administrators who want to replace long shell scripts with reliable Python tools
- Data analysts, accountants and management controllers who want to automate their Excel spreadsheets and reports
- Developers from other languages (PHP, Java, JavaScript) moving to Python for back-end or data work
- Computer science students (BTS, DUT, bachelor’s degree, engineering schools) preparing for an internship