I want to check an entire list for a specific string, if the string was not found in the list then it would print out "No string found".
This seems like a very simple question but I am drawing a blank on how to do this.
Code:
for item in lists:
if apple in item:
print(item)
#if looped through entire lists and none are found
#print("No string found!")
Sorry if this is very basic, I just cant seem to think of how to do this in python.