A python script that indefinitely calculates pi would think it immoral
Doubtful.
n=0
sumterms=0
while True:
term=(-1)**n/(2*n+1) # Gregory-Leibniz series
sumterms+=term
pi=4*sumterms
print(pi)
n+=1
Well, you have to give it the capacity to develop morality if you want it to serve as a true counterexample.
You all know the rules: