subject
Computers and Technology, 08.06.2020 19:57 ana5246

I'm having trouble working through this code in Python - I'm new to Python but have used SQL languages and I don't know if I'm getting them confused or what. the problem is:

"Write a function in the cell below that iterates through the words in file_contents, removes punctuation, and counts the frequency of each word. Oh, and be sure to make it ignore word case, words that do not contain all alphabets and boring words like "and" or "the". Then use it in the generate_from_frequencies function to generate your very own word cloud!"

My code is attached...

And then when I try to get the word cloud to appear - I get the following error:

NameError: name 'file_contents' is not defined - this is related to the my_image line in the section right above this.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
You know the right answer?
I'm having trouble working through this code in Python - I'm new to Python but have used SQL languag...
Questions
question
Mathematics, 19.09.2019 01:30
Questions on the website: 13722367