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 11:00
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
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
Social Studies, 21.08.2019 13:30
question
Social Studies, 21.08.2019 13:30
question
Physics, 21.08.2019 13:30
Questions on the website: 13722361