search = ["Hello", "Hi", "Hey"]
string = "Hey World!"
print(string.startswith(tuple(search)))
testprefix = ['a/b/c/d','a/b/d','a/b/c/e','e/c/g/','d/e/1.jpg','a/b/c']
testprefix = sorted(testprefix,key=lambda x:len(x),reverse=False)
app = []
print(testprefix)
for item in testprefix:
if item not in app:
if app:
if not item.startswith(tuple(app)):
app.append(item)
else:
app.append(item)
print(app)