# Write a Python program to Test substring order # Python3 code to demonstrate working of # Test substring order# Using join() + in operator + generator expression  # initializing stringtest_str = 'geeksforgeeks'  # printing original stringprint("The original string is : " + str(test_str))  # initializing substringK = 'seek'  # concatenating required characters temp = lambda sub: ''.join(chr for chr in sub if chr in set(K))  # checking in orderres = K in temp(test_str)  # printing result print("Is substring in order : " + str(res)) 