Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result_list = [
- '0 instances of 44 bpm',
- '0 instances of 45 bpm',
- '10 instances of 46 bpm',
- '22 instances of 47 bpm',
- '354 instances of 65 bpm',
- '20 instances of 145 bpm'
- ]
- strip_zero = [x for x in result_list if not '0 instances' in x]
- print(strip_zero)
- ['22 instances of 47 bpm', '354 instances of 65 bpm']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement