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'))
En esta página del sitio puede ver el video en línea GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex9c de Duración hora minuto segunda en buena calidad , que subió el usuario GRACE COLLEGE OF ENGINEERING 04 abril 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 507 veces y le gustó 2 a los espectadores. Disfruta viendo!