while True:
    a = int(eval(input("What's one of the angles?" + '\n')))
b = int(eval(input("What's the other angle in the triangle?" + '\n')))
c = a + b
f = int(180 - c)
print(f)
if input("Would you like to do another? 'y' or 'n'" + '\n').lower() == 'y':
    pass
else:
    break
A simple looping command In Python