def sum_twenty(a, b):
total = a+b
if (total > 9) and (total < 20):
return 20
else:
return total
a = int(input("Enter a:"))
b = int(input("Enter b:"))
print(sum_twenty(a, b))
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment