Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = ['cat', 'window', 'blahblah']
- for word in words[:]:
- if len(word) > 6:
- words.insert(0, word)
- print(words)
- words = ['blahblah', 'cat', 'window', 'blahblah']
- for word in words:
- if len(word) > 6:
- words.insert(0, word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement