Final project word cloud In Python
For this project, you’ll create a “word cloud” from a text by writing a script. This script needs to process the text, remove punctuation, ignore case and words that do not contain all alphabets, count the frequencies, and ignore uninteresting or irrelevant words. A dictionary is the output of the calculate_frequencies
function. The wordcloud
module will then generate the image from your dictionary.
Python Practise 2
1.Fill in the blanks of this code to print out the numbers 1 through 7.
number = 1
while number <=7:
print(number, end=" ")
number+=1
Answer: 1 2 3 4 5 6 7
2.The show_letters function should print out each letter of a word on a separate line. Fill in the blanks to make that happen.
def show_letters(word):
for letters in word:
print(letters)
show_letters("Hello")
# Should print one line per letter