✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Write a Python program that reads a text file. The program should:
Extract all words and convert them to lowercase.
Store the words in a list.
Use a dictionary to group the words by their length.
Print all words that have the maximum length, in alphabetical order.
In the realm of artificial intelligence, machines learn from data.
Extraordinary algorithms power systems that simulate human cognition.
Sometimes, simplicity outperforms complexity.
Example of code execution:
Enter the filename: text2.txt
Words with the maximum length (13):
extraordinary
intelligence,
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!