Advertisement
mrfeedoz

list(10)

Dec 7th, 2022
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. text = input()
  2. words = text.split()
  3.  
  4. word = words[0]
  5.  
  6. for i in words:
  7.     if len(i) > len(word):
  8.         word = i
  9.  
  10. print(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement