menu.items() returns a view object of key–value pairs from the dictionary — each one is a tuple.
Each iteration of the for loop assigns one (key, value) tuple to the variable value.
Iteration value value[1] printed output
1 ('syrniki', 12.8) 12.8 12.8
2 ('shashlik', 49.9) 49.9 12.849.9
3 ('borscht', 23.2) 23.2 12.849.923.2
D. 12.849.923.2
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
4ba36e7
1 month, 3 weeks ago