No error messages.
The code seems to skip over letters in a string during an iterative for loop.
I got the code to work using the commented out sections. I just dont understand why the original code [as it is below] seems to randomly skip over certain variables.
def anti_vowel(test): ntest= vowel=['a','e','i','o','u','A','E','I','O','U'] joop="" for h in test: ntest.append(h) print ntest for i in ntest: print '-', i, '-' #if i in vowel: #continue #else: # joop=joop+i for j in vowel: #This is where things seem to go wrong. if j==i: # With this for loop commented out the previous loop will print out all of ntest ntest.remove(j) print 'ntest = ',ntest #print joop #return joop for a in ntest: joop = joop + a return joop print anti_vowel("Kristian")