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

ДЗ2 #2

Open
anrom7 opened this issue May 11, 2020 · 2 comments
Open

ДЗ2 #2

anrom7 opened this issue May 11, 2020 · 2 comments

Comments

@anrom7
Copy link

anrom7 commented May 11, 2020

щось з тим циклом треба робити:
for key in data_js.keys():
if key == 'title':
title = data_js[key]
info_lst.append(title)
elif key == 'nutrition':
for nutrients in data_js['nutrition']['nutrients']:
for key_nut in nutrients.keys():.....

@khristinakokolus
Copy link
Owner

То ось це потрібно змінити? І чи є оцінка за дз 2 остаточною, чи вона ще може змінитися?

@anrom7
Copy link
Author

anrom7 commented May 12, 2020

З великою ймовірністю остаточна. Треба позбуватися потрійних циклів, звичайно якщо це можливо. Думаю що у Вас не алгоритм Дейкстри то можна знайти рішення.

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

No branches or pull requests

2 participants