Advertisement
pacho_the_python

Untitled

Feb 12th, 2022
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. letters = ["aa", "bb", "cc", "aa", "dd"]
  2.  
  3. result = [x for x in letters if x != "aa"]
  4.  
  5. print(result)
  6.  
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement