This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Part II complete

Jay Krishnan (Jul 4, 2026, 12:21 PM +0200) bd726b24 f1999451

+72 -2
+3 -2
alchemy/__init__.py
··· 7 7 # By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ # 8 8 # +#+#+#+#+#+ +#+ # 9 9 # Created: 2026/07/04 10:06:29 by jkrishna #+# #+# # 10 - # Updated: 2026/07/04 10:49:08 by jkrishna ### ########.fr # 10 + # Updated: 2026/07/04 12:19:43 by jkrishna ### ########.fr # 11 11 # # 12 12 # ########################################################################### # 13 13 14 14 from alchemy.elements import create_air 15 - 15 + from alchemy.potions import healing_potion as heal 16 + from alchemy.potions import strength_potion
alchemy/__pycache__/__init__.cpython-310.pyc

This is a binary file and will not be displayed.

alchemy/__pycache__/potions.cpython-310.pyc

This is a binary file and will not be displayed.

+28
alchemy/potions.py
··· 1 + #!/usr/bin/env python3 2 + # ########################################################################### # 3 + # shebang: 1 # 4 + # ::: :::::::: # 5 + # potions.py :+: :+: :+: # 6 + # +:+ +:+ +:+ # 7 + # By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ # 8 + # +#+#+#+#+#+ +#+ # 9 + # Created: 2026/07/04 11:35:22 by jkrishna #+# #+# # 10 + # Updated: 2026/07/04 12:04:19 by jkrishna ### ########.fr # 11 + # # 12 + # ########################################################################### # 13 + 14 + 15 + import elements as root_elements 16 + from . import elements as local_elements 17 + 18 + 19 + def healing_potion() -> str: 20 + earth = local_elements.create_earth() 21 + air = local_elements.create_air() 22 + return (f"Healing potion brewed with ’{earth}’ and ’{air}'") 23 + 24 + 25 + def strength_potion() -> str: 26 + fire = root_elements.create_fire() 27 + water = root_elements.create_water() 28 + return (f"Strength potion brewed with ’{fire}’ and ’{water}'")
+20
ft_distillation_0.py
··· 1 + #!/usr/bin/env python3 2 + # ########################################################################### # 3 + # shebang: 1 # 4 + # ::: :::::::: # 5 + # ft_distillation_0.py :+: :+: :+: # 6 + # +:+ +:+ +:+ # 7 + # By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ # 8 + # +#+#+#+#+#+ +#+ # 9 + # Created: 2026/07/04 11:57:05 by jkrishna #+# #+# # 10 + # Updated: 2026/07/04 12:03:39 by jkrishna ### ########.fr # 11 + # # 12 + # ########################################################################### # 13 + 14 + from alchemy.potions import healing_potion, strength_potion 15 + 16 + if __name__ == "__main__": 17 + print("=== Distillation 0 ===") 18 + print("Direct access to alchemy/potions.py") 19 + print(f"Testing strength_potion: {strength_potion()}") 20 + print(f"Testing healing_potion: {healing_potion()}")
+21
ft_distillation_1.py
··· 1 + #!/usr/bin/env python3 2 + # ########################################################################### # 3 + # shebang: 1 # 4 + # ::: :::::::: # 5 + # ft_distillation_1.py :+: :+: :+: # 6 + # +:+ +:+ +:+ # 7 + # By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ # 8 + # +#+#+#+#+#+ +#+ # 9 + # Created: 2026/07/04 12:05:00 by jkrishna #+# #+# # 10 + # Updated: 2026/07/04 12:19:30 by jkrishna ### ########.fr # 11 + # # 12 + # ########################################################################### # 13 + 14 + import alchemy 15 + 16 + 17 + if __name__ == "__main__": 18 + print("=== Distillation 1 ===") 19 + print("Using: 'import alchemy' structure to access potions") 20 + print(f"Testing strength_potion: {alchemy.strength_potion()}") 21 + print(f"Testing heal alias: {alchemy.heal()}")