I tried this:
sentence = input("Sentence without punctuation: ")
lst = [sentence]
longestString = max(lst, key=len)
print(longestString)
print(len(longestString))
But my output is this:
sentence = input("Sentence without punctuation: ")
lst = [sentence]
longestString = max(lst, key=len)
print(longestString)
print(len(longestString))