The code you provided contains an error. Specifically, the method vals() does not exist for dictionary objects in Python. The correct method to retrieve the values of a dictionary is values().
Here's the corrected version of the code:
data = {'1': '0', '0': '1'}
for d in data.values():
print(d, end='')
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.
akumo
1 month, 3 weeks agohovnival
4 months, 2 weeks agoNfyughguygjhg
5 months, 1 week agoVano1
6 months, 1 week agopescamillam
6 months, 2 weeks agoSarangM
6 months, 3 weeks agoRagoo
6 months, 3 weeks agoVano1
6 months, 1 week agomegan_mai
8 months, 2 weeks ago