Hi guys I've been looking for sorting two lists from the highest value to the lowest.
I want to keep them synchronized. In my code, those lists are empty so users will be filling them with their input food and their values of calories. I have no clue how should I do that.
food = ["apple", "fries", "bread"]
food_calories = [150, 250, 175]
My requested output should be looking like
These are your today's calories
fries - 250 calories
bread - 175 calories
apple - 150 calories
I was trying to use zip
and sorted
but I'm not experienced with that particular syntax. My program is sort of daily food/activities manager with calories deficit/surplus.