Найти - Пользователи
Полная версия: пожайлуста подскажите как сделать
Начало » Центр помощи » пожайлуста подскажите как сделать
1
marine18
Вывести фразу “ integrated virtualization, from desktop to data center.”Определить, и вывести слово, которое состоит из наибольшего количества букв.
terabayt
s = "integrated virtualization, from desktop to data center"
print(max(s.split()))
marine18
thank you very much
py.user.next
terabayt
print(max(s.split()))
Запятую-то нужно исключить.
codersed
import re
task = 'integrated virtualization, from desktop to data center.'
check = re.findall(r'\w+', task)
print(max(check, key=len))
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB