Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> messages = [{'text': 'dicks1'}, {'text': 'dicks2'}, {'text': 'vag1'}, {'text': 'vag2'}]
- >>> nodicks = [msg for msg in messages if 'dick' not in msg['text']]
- >>> nodicks
- [{'text': 'vag1'}, {'text': 'vag2'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement