Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. result_list = [
  2. '0 instances of 44 bpm',
  3. '0 instances of 45 bpm',
  4. '10 instances of 46 bpm',
  5. '22 instances of 47 bpm',
  6. '354 instances of 65 bpm',
  7. '20 instances of 145 bpm'
  8. ]
  9.  
  10. strip_zero = [x for x in result_list if not '0 instances' in x]
  11.  
  12. print(strip_zero)
  13.  
  14. ['22 instances of 47 bpm', '354 instances of 65 bpm']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement