From anonymous, 10 Years ago, written in Plain Text.
This paste is a reply to help me plz from n0Ki$$
- view diff
Embed
  1. #!/usr/bin/python -tt
  2.  
  3. words = ['xxx','yyy','zzz','xxxx','xxxxx']
  4.  
  5. for str in words:
  6.         if str.startswith('x'):
  7.                 words.remove(str)
  8. print words
  9.  
  10. #It prints this: ['yyy', 'zzz', 'xxxxx']
  11. #Why don't deleted 'xxxxx'????