I have a list:
my_list = ['hello', 'def-456', 'ghello', 'abc', 'helloajisjioj']
and want to search for items that contain the string 'hello'. How can I do that?
The result should be:
'hello', 'ghello', 'helloajisjioj'
How can i do that? I tried the find, but he only find 'hello'.
i tried something like:
if 'hello' in my_list:
Thanks for your answers.