You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
щось з тим циклом треба робити:
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():.....
The text was updated successfully, but these errors were encountered:
З великою ймовірністю остаточна. Треба позбуватися потрійних циклів, звичайно якщо це можливо. Думаю що у Вас не алгоритм Дейкстри то можна знайти рішення.
щось з тим циклом треба робити:
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():.....
The text was updated successfully, but these errors were encountered: