Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = "ля ляля ляляля"
- words = string.split()
- longest_word = ""
- for word in words:
- if len(word) > len(longest_word):
- longest_word = word
- print(f"Самое длинное слово: {longest_word}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement