MLH-Fellowship / orientation-project-python-23.SUM.A

Orientation Project (Python) for 23.SUM.A
1 stars 12 forks source link

separated logic into utils and fixed index bug #26

Closed ahmedehabb closed 1 year ago

ahmedehabb commented 1 year ago

I separated the logic of getting a certain model by index into functions in a separate file called utils.py since i will use the same code in editing existing models. Also there is a bug in indexing (if 0 <= index < len(data["education"]) -1 ) this will exclude the last one which is incorrect. so i removed the -1