i've got an annoying bit of code that i want to have something happen to...
import time
global END
END = 0
def bacteria():
b = int(input("Bacteria number? "))
l = int(input("Limit? "))
i = (float(input("Increase by what % each time? ")))/100+1
h = 0
d = 0
w = 0
while b < l:
b = b*i
h = h+1
else:
while h > 24:
h = h-24
d = d+1
else:
while d > 7:
d = d-7
w = w+1
print("The bacteria took " + str(w) + " weeks, " + str(d) + " days and " + str(h) + " hours.")
def runscript():
ANSWER = 0
ANSWER = input("Run what Program? ")
if ANSWER == "bacteria":
print(bacteria())
ANSWER = 0
if ANSWER == "jimmy":
print(jimmy())
ANSWER = 0
if ANSWER == "STOP" or "stop":
quit()
while True:
print(runscript())
So, after the line "if ANSWER == "STOP" or "stop":" i want the script to end; but only if i have entered STOP or stop as the ANSWER, to stop the otherwise infinite loop.