Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Howdy, i need help with this question and i need the answer in Python 3.x. Please help me. Thank you! 2. Write a program tasinatext

image text in transcribed

Howdy, i need help with this question and i need the answer in Python 3.x. Please help me. Thank you!

2. Write a program tasinatext file,crs lrstolowercase and bulild dictionary that the keys are the lowercase letters of the English alphabet, and the values are set of words from the file that start with the given letter. Print out the dictionary. Use this poem for the function Sonnet Number 18 Shall I compare thee to a summer's day? Thou art more lovely and more te mpera te: Rough winds do shake the darling buds of May, And summer's lease hath all too short a date: Some time too hot the eye of heaven shines, And often is his gold complexion dimmed, And every fair from fa ir some time declines, By chance, or nature's changing course untrimmed But thy etemal summer shall not fade, Nor lose possession of that fair thou ow'st Nor shall death brag thou wander'st in his shade, When in etemal lines to time thou grow'st breathe, or eyes o long as men can can see, So long lives this, and this gives life to thee. HINT: Deal with punctuation by using string.punctuation in the string module, a set is an unordered-mutable collection of unique elements. For example x - (3,4,5,1). You can add 6 tox by invoking xadd(6) which would yield x= {3,4,5, 1,6)]

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_2

Step: 3

blur-text-image_3

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions