How thaissantanna/exercicio_funcoes works
Project type and purpose
• This is a collection of standalone Python exercise scripts—no frontend, backend, or persistence layer.
• Purpose: implement and test small single-responsibility functions (string utilities, geometric calculators, algorithm–based exercises).
File structure
• Root contains nine def_*.py modules, each implementing exactly one utility function or algorithm, plus a README.
• No configuration, no build artifacts, no tests directory—these scripts are executed directly by the Python runtime.
Main components
a. User / CLI
• The person or test harness that invokes a given script.
b. Python Interpreter (v3.x)
• The runtime that loads and executes the script.
c. Function Modules (grouped by category)
1. Geometric Calculations
– def_area_triangulo.py
– def_area_quadrilatero.py
– def_perimetro_triangulo.py
– def_perimetro_quadrilatero.py
– def_quadrado.py
2. String / Algorithmic Utilities
– def_anagrama.py
– def_palindromo.py
– def_reverse.py
– def_tamanho_palavras.py
3. Special Algorithm
– def_torre_hanoi.py
d. (Optional) Input/Output Medium
• STDIN/STDOUT or simple parameters/print statements
Relationships and data flow
• User → [invoke] → Python Interpreter
• Interpreter → [import & execute] → Specific Function Module
• Module → [compute] → returns result to Interpreter → [print] → User
• Every module is isolated: no inter-module calls, no shared state.
Architectural patterns and principles
• Single Responsibility: each script does one thing.
• Separation by domain: group scripts by functional concerns (geometry vs. string).
• No persistence or external dependencies.
Technologies & frameworks
• Python 3 standard library only.
• CLI invocation (e.g., python def_palindromo.py).