- 0. Import a simple function from a simple file
0-add.py
- Imports the functiondef add(a, b)
from the fileadd_0.py
and prints the result of the addition1 + 2 = 3
.
- 1. My first toolbox!
1-calculation.py
- Imports functions from the filecalculator_1.py
, does some Maths, and prints the result.
- 2. How to make a script dynamic!
2-args.py
- Prints the number of and the list of its arguments (argv
).
- 3. Infinite addition
3-infinite_add.py
- Prints the result of the addition of all arguments.
- 4. Who are you?
4-hidden_discovery.py
- Prints all the names defined by a compiled module, prints only names that don't start with__
.
- 5. Everything can be imported
5-variable_load.py
- Imports the variablea
from the filevariable_load_5.py
and prints its value.
- Felipe Villamizar - GitHub