Why does this give me an error when calc == off? The program should end after i is changed.
def calc():
i="i"
while i=="i":
calc = input("Enter your calculation ")
if calc!="off" or "Off":
ans = eval(calc)
print(ans)
else:
i="a"