I try to import a list in python. However, I would like to customize my code in such a way, that the list will look like this:
['a', 'b', 'c']
instead of like this:
[["['a','b','c']"]]
The reason is that I have to compare if a list is in another list and it won't succeed when the list is not formatted well. The rest of the code looks like this:
def check(a1, a2):
listA = []
listB = []
listA.append(a1)
listB.append(a2)
if listA in listB:
print True
else:
print False