From anonymous, 10 Years ago, written in Plain Text.
This paste is a reply to help me plz from n0Ki$$
- go back
Embed
Viewing differences between help me plz and Re: help me plz
#!/usr/bin/python -tt

words = ['xxx','yyy','zzz','xxxx','xxxxx']

for str in words:
        if str.startswith('x'):
                words.remove(str)
print words
words

#It prints this: ['yyy', 'zzz', 'xxxxx']
#Why don't deleted 'xxxxx'????