The program from the entered string should write out all the words in the column, and then write out the longest word from this string, the code for getting a column of words is already ready, but I don’t know how to manually make the code to search for the biggest word. Help me please. Here is the code itself:
str1 = str(input()) word = "" words = [] k = 0 for i in str1: if i != " ": word += i else: words.append(word) word = "" for j in words: print(j) for j in words: if j > words(k): j += 1 else: k += 1