GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex9c- Implementing real-time/technical applications for longest word using File Handling
This video shows how to write a python program to implement real-time/technical applications for longest word using File Handling
PROGRAM:
def longest_word(filename):
with open(filename, 'r') as infile:
words = infile.read().split()
max_len = len(max(words, key=len))
return [word for word in words if len(word) == max_len]
print(longest_word('first.txt'))
Nesta página do site você pode assistir ao vídeo on-line GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex9c duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário GRACE COLLEGE OF ENGINEERING 04 Abril 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 507 vezes e gostou 2 espectadores. Boa visualização!