So say I have
list = ['I am blue', 'I am red', 'I am not blue', 'I am green']
Is there a way to create a new list such that it will contain only the entries in "list" that contain the word 'blue' (and disregard the other parts of that string)? i.e.
blue_list = ['I am blue', 'I am not blue']
and then I'd need to check the amt of entries in "blue_list" but I can do that with
len(blue_list)
Thanks!