ENSAI - 2A - Programmation algorithmique en Python - 2025/2026
Bonus: setup a project with uv
You can add a module with functions in src/my_project
, e.g.:
def add(x, y):
return x + y
Then in any other script, you can import your functions:
from my_project.my_module import add
x = add(2.0, 3.0)