Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exo2 #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Exo2 #20

wants to merge 4 commits into from

Conversation

LeoGrouet
Copy link

Here is my solution to Exercise 2.

This exercise was particularly interesting for me. Initially, I had to understand how the API was structured, which required some learning.
Then i had to find the best way ( for me at least ), to fetch the more information possible and return it to get a good script.

In my first attempt, i fetched the 100 first results of the API to gather all of the region onward to fetch the information of the lowest gaz price. Then i realized it was not very maintenable. If one of the 13 region didn't appear in the 100 first result, the application wouldn't work very well ...
So I tried to find a better way. Then I succeed to filter only one of each of the region name onward to loop on each of them to get the lowest price in the region.

Hope it's okay !

@LeoGrouet LeoGrouet requested a review from a team as a code owner February 20, 2024 15:24
@qroques qroques removed the request for review from a team March 17, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant