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, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
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
Biology, 25.02.2021 23:10
question
English, 25.02.2021 23:10
question
Biology, 25.02.2021 23:10
question
Chemistry, 25.02.2021 23:10
question
Mathematics, 25.02.2021 23:10
question
Mathematics, 25.02.2021 23:10
Questions on the website: 13722367