So let's say I have a list of names and I want to see if they contain the letter "a". How would I go about printing just the strings in the list containing that and not just printing the whole list.
Names = ["Mike", "Ted", "John", "Adam", "Liam"]
if ("a" in Names):
     print (//Print out the names containing a//)
else:
     if ("a" not in Names):
     print("No names found containing a")
Obviously it's a bit more complicated than this but just to show just a very basic look at what I'm aiming for.
 
     
    