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

Solution/Alex #405

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

AlexIzmashkin
Copy link

No description provided.

app/main.py Outdated
data = json.load(file)
fuel_price = data["FUEL_PRICE"]
customers = data["customers"]
customer_list = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename customer_list to customers_instances

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

app/main.py Outdated
]

shops = data["shops"]
shop_list = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same rename

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

app/shop.py Outdated
Comment on lines 27 to 28
return sum(self.products[prod] * customer.product_cart[prod]
for prod in self.products.keys())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can iterate through items instead of usage self.products[prod]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, corrected.

Copy link

@YukihiroSM YukihiroSM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

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.

3 participants