I was wondering if there was a way to convert my List into a String.
Example: Is there a way to convert MyList = [\'a\', \'b\', \'c\', \'d\', \'e\'] to
MyList = [\'a\', \'b\', \'c\', \'d\', \'e\']
>>> MyList = ['a', 'b', 'c', 'd', 'e'] >>> ''.join(MyList) 'abcde'
The solution to your other question
>>> MyList = ['a', 'b', 'c', 'd', 'e'] >>> all(letter in MyList for letter in 'bad') True >>> all(letter in MyList for letter in 'test') False