While floats aren't iterable, tuples are.
new = ()
rates[-2:] means: take the last two elements of the tuple → (1.4, 1.0)
So the loop runs twice:
rate = 1.4
rate = 1.0
new = (1.4, 1.0)
B. 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 ago4ba36e7
1 month, 3 weeks ago