#!/usr/bin/python -tt words = ['xxx','yyy','zzz','xxxx','xxxxx'] for str in words: if str.startswith('x'): words.remove(str) print words #It prints this: ['yyy', 'zzz', 'xxxxx'] #Why don't deleted 'xxxxx'????