How mattp04/utn-tupad-prog1-2025-tpi works
• Input Data: Paises.csv
• Entry Point: main.py
• CSV Reader: funciones/leer_csv.py
• Menu Dispatcher: funciones/menu.py
• Functional Modules:
• buscar_pais.py
• filtrar_paises.py
• ordenar_paises.py & ordenar_lista.py
• obtener_dato.py
• mostrar_paises.py
• mostrar_estadisticas.py
• Output: Console (print results back to user)
a. main.py → leer_csv.py: load the CSV into an in-memory list of country records.
b. main.py → menu.py: present options and read user choice.
c. menu.py → the chosen functional module(s): depending on user selection, call one of the modules.
d. Functional module(s) → (optionally) ordenar_lista.py or obtener_dato.py: helper modules for sorting or extracting a field.
e. Functional module(s) → mostrar_paises.py or mostrar_estadisticas.py: render the results.
f. After display → loop back to menu.py or exit.
Patterns
• Modular design: each “funciones/…” file is a single-responsibility module.
• Central dispatcher (menu) that routes to specialized functions.
• Helper modules (ordenar_lista, obtener_dato) shared by multiple features.
Putting It All Together
• Main.py next, then menu.py beneath it.