Getting an error "Oops, try again. Your code looks a bit off--it threw a "list index out of range" error.
I kinda expected the code to just work...
def is_odd(u): #checks if the input is odd, if yes returns true if not u%2==0: return True else: return False def purify(x): hurr2= for z in x: #for every entry in x, it should loop? no? if is_odd(x[z])==False: hurr2.append(x[z]) return hurr2
The fault must be obvious but I've been staring at it for so long I don\t know anymore.