Is it possible to find line in file by part of it
As example:
I'm the good boy
I'm the bad boy
I'm the really good boy
Can i find the line by searching I'm the boy without writing good or bad
i need to catch the three lines
i tried
str = "iam good boy"
if "iam boy" in str:
print ("yes")
else:
print ("no")
inonly works on exact substrings.