The function calculatekAns() returns a tuple in your program as you have put a comma between right and ans inside the return function that contains two values. It might be confusing but, yeah parenthesis is optional (in most of the cases) but the comma makes it a tuple type. So, can assign the value of return inside the right
right = calculatekAns(num1, num2, ans, right)
And now you can return the value of right only in your program, and that should work fine.
def calculateAns(num1, num2, ans, right):
if ans == num1+num2:
right = right + 1
Leave a kudos if it helps you. Thanks.