N = int(input('Введите кол-во слов: '))
words = []
for _ in range(N):
word = input('Введите слово: ')
words.append(word)
short_word = words[0]
for word in words:
if len(word) < len(short_word):
short_word = word
print(len(short_word))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
N = int(input('Введите кол-во слов: '))
words = []
for _ in range(N):
word = input('Введите слово: ')
words.append(word)
short_word = words[0]
for word in words:
if len(word) < len(short_word):
short_word = word
print(len(short_word))