B. 21
Explanation: var = 1, when any() function is called, it locally adds 1 to var and prints. After any(), print(var) prints 1 because var is set globally and the function only added 1 to var locally(within the function)
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.
Donny_575
2 weeks, 5 days ago