Home
О нас
Products
Services
Регистрация
Войти
Поиск
feldman2001
@feldman2001
July 2022
1
21
Report
Помогите сделать задание python.
Ввести с клавиатуры символьную строку и определить самое длинное слово и его размер.
Пример.
Введите символьную строку:
Вася пошел гулять
Самое длинное слово: гулять, размер 6
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
budzsergiy777p0i27m
def slovo(n)
:
print("Найбільше букв в слові: ",max(n.split(),key=len) )
print("Його довжина: ",len(max(n.split(),key=len)) )
n = str(input("Введіть речення: \n"))
slovo(n)
1 votes
Thanks 0
×
Report "Помогите сделать задание python.Ввести с клавиатуры символьную строку и определи..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
print("Найбільше букв в слові: ",max(n.split(),key=len) )
print("Його довжина: ",len(max(n.split(),key=len)) )
n = str(input("Введіть речення: \n"))
slovo(n)