String contains all the elements of a list
- by CSSS
I am shifting to Python, and am still relatively new to the pythonic approach. I want to write a function that takes a string and a list and returns true if all the elements in the list occur in the string.
This seemed fairly simple. However, I am facing some difficulties with it. The code goes something like this:
def myfun(str,list):
…