first part · LuisPM24/python_module06@e891714 · GitHub
Skip to content

Commit e891714

Browse files
committed
first part
0 parents  commit e891714

12 files changed

Lines changed: 84 additions & 0 deletions
403 Bytes
Binary file not shown.

‎alchemy/__init__.py‎

Lines changed: 3 additions & 0 deletions
204 Bytes
Binary file not shown.
409 Bytes
Binary file not shown.

‎alchemy/elements.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def create_earth() -> str:
2+
return ("Earth element created")
3+
4+
5+
def create_air() -> str:
6+
return ("Air element created")

‎elements.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def create_fire() -> str:
2+
return ("Fire element created")
3+
4+
5+
def create_water() -> str:
6+
return ("Water element created")

‎ft_alembic_0.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import elements
2+
3+
4+
def main() -> None:
5+
print("=== Alembic 0 ===")
6+
print("Using: 'import ...' structure to access elements.py")
7+
print(f"Testing create_fire: {elements.create_fire()}")
8+
9+
10+
if __name__ == "__main__":
11+
main()

‎ft_alembic_1.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from elements import create_water
2+
3+
4+
def main() -> None:
5+
print("=== Alembic 1 ===")
6+
print("Using 'from ... import ...' structure to access elements.py")
7+
print(f"Testing create_water: {create_water()}")
8+
9+
10+
if __name__ == "__main__":
11+
main()

‎ft_alembic_2.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import alchemy.elements
2+
3+
4+
def main() -> None:
5+
print("=== Alembic 2 ===")
6+
print("Accessing alchemy/elements.py using 'import ...' structure")
7+
print(f"Testing create_earth: {alchemy.elements.create_earth()}")
8+
9+
10+
if __name__ == "__main__":
11+
main()

‎ft_alembic_3.py‎

Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)