Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED HELP IN PYHTON PROGRAMMING. I HAVE ATTACH SCREENSHOT OF MARY.TXT AND FROST.TXT Write a program that prints the word that has the longest length,

NEED HELP IN PYHTON PROGRAMMING. I HAVE ATTACH SCREENSHOT OF MARY.TXT AND FROST.TXT

Write a program that prints the word that has the longest length, in terms of the number of characters, in the supplied text file. Show your output to the TA on the following text files: mary.txt and frost.txt.

image text in transcribed

image text in transcribed

Mary had a little lamb, whose fleece was white as snow. And everywhere that Mary went, the lamb was sure to go. It followed her to school one day which was against the rules. It made the children laugh and play, to see a lamb at school. And so the teacher turned it out, but stil1 it lingered near, And waited patiently about, till Mary did appear. "Why does the lamb love Mary so?" the eager children cry. "Why, Mary loves the lamb, you know." the teacher did reply. topping Dy Wwoods on a snowy evenin Whose woods these are I think I know. His house is in the village, though; He will not see me stopping here To watch his woods fill up with snow The woods are lovely, dark, and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago