Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. words = ['cat', 'window', 'blahblah']
  2.  
  3. for word in words[:]:
  4. if len(word) > 6:
  5. words.insert(0, word)
  6.  
  7. print(words)
  8.  
  9. words = ['blahblah', 'cat', 'window', 'blahblah']
  10.  
  11. for word in words:
  12. if len(word) > 6:
  13. words.insert(0, word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement