max(X_train, key=len).split() code example
Example: max(X_train, key=len).split()
maxlen = len(max(l, key=len))
maxlist = [s for s in l if len(s) == maxlen]
maxlen = len(max(l, key=len))
maxlist = [s for s in l if len(s) == maxlen]