This repository has no description
0

Configure Feed

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

attempt on ex1, not completed

Jay Krishnan (Jul 7, 2026, 4:12 PM +0200) 14c9515b 6b744573

+55
+43
ex1/loading.py
··· 1 + #!/usr/bin/env python3 2 + # ########################################################################### # 3 + # shebang: 1 # 4 + # ::: :::::::: # 5 + # loading.py :+: :+: :+: # 6 + # +:+ +:+ +:+ # 7 + # By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ # 8 + # +#+#+#+#+#+ +#+ # 9 + # Created: 2026/07/07 15:22:12 by jkrishna #+# #+# # 10 + # Updated: 2026/07/07 16:08:50 by jkrishna ### ########.fr # 11 + # # 12 + # ########################################################################### # 13 + 14 + import importlib.util 15 + 16 + 17 + def check_package(name): 18 + spec = importlib.util.find_spec(name) 19 + return spec is not None 20 + 21 + 22 + def check_dependencies(): 23 + if check_package("pandas"): 24 + import pandas 25 + print(f"[OK] pandas ({pandas.__version__}) - Data manipulation ready") 26 + 27 + if check_package("numpy"): 28 + import numpy 29 + print(f"[OK] numpy ({numpy.__version__}) - Numerical computation ready") 30 + 31 + if check_package("requests"): 32 + import requests 33 + print(f"[OK] requests ({requests.__version__}) - Network access ready") 34 + 35 + if check_package("matplotlib"): 36 + import matplotlib 37 + print(f"[OK] matplotlib ({matplotlib.__version__}) - Visualization ready") 38 + 39 + 40 + if __name__ == "__main__": 41 + print("LOADING STATUS: Loading programs...\n") 42 + print("Checking dependencies:") 43 + check_dependencies()
ex1/pyproject.toml

This is a binary file and will not be displayed.

ex1/requirements.txt

This is a binary file and will not be displayed.

+12
to_do.txt
··· 1 + check if pandas installed 2 + check if numpy installed 3 + check if requests installed 4 + check if matplotlib installed 5 + print version if installed 6 + print install instructions if missing 7 + generate data with numpy 8 + analyze with pandas 9 + plot with matplotlib 10 + save to png 11 + write requirements.txt 12 + write pyproject.toml