Answer:
def calculate_score(theTuple):
first, second, third = theTuple
if first >= 0 and first <=10 and second >= 0 and second <=10 and third >= 0 and third <=10:
print(first + second+third)
else:
print("Range must be 0 to 10")
Explanation:
This line defines the function
def calculate_score(theTuple):
This line gets the content of the function
first, second, third = theTuple
The following if condition checks if the digits are in the range 0 to 10
if first >= 0 and first <=10 and second >= 0 and second <=10 and third >= 0 and third <=10:
This calculates the sum
print(first + second+third)
else:
If number is outside range 0 and 10, this line is executed
print("Range must be 0 to 10")