Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created April 18, 2019 22:02
Show Gist options
  • Save StephenFordham/d0684e66e7fe2e90a1eaafca62db596b to your computer and use it in GitHub Desktop.
Save StephenFordham/d0684e66e7fe2e90a1eaafca62db596b to your computer and use it in GitHub Desktop.
boolean_list
import re
booleans = []
for result in Blast.Species_name_blast_hit:
if not re.search('bacterium', result):
booleans.append(True)
else:
booleans.append(False)
print(booleans[0:5])
print(len(booleans))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment