Question: only question 4 please 4. Identify and print each special character in the text. A special character is any character that is not alphanumeric, meaning

only question 4 pleaseonly question 4 please 4. Identify and print each special character in

4. Identify and print each special character in the text. A special character is any character that is not alphanumeric, meaning not a character of the alphabet nor a number. Example:#,$? etc. (8 pts) Question 3 - Recursive functions (15 pts] The main function will have the following signature: Rewrite getGrowth function from Question 1 in a recursive way but this time we don't need a list nor to return the result in a list. The function should return the estimated number of population for year n given year zero, rate, number of immigrants per year and the number of years textAnalyser(text) You need to: The signature of the function shall remain similar to the previous one: getGrowthRecursive(population year_zero, rate, Immigration per year, nbr of years) create as many utility functions as needed and give them names that reflect what these functions are doing, The textAnalyser function will be calling these functions in order to get the job done. You need to define what each function takes as input and what does it return as output For example, if the population for year zero was 1000., the rate of growth is 2% (0.02), immigration per year is 10 and we want to know the population after 3 years, then the call for the function should be: Example: growth_estimate getGrowth(1000, 0.02, 10,3) my_text = "Hello class, I hope that you are enjoying this class! :)" Then if you print the result with printgrowth_estimate) you should get a result like this: 1091.812 which represents the population after 3 years. textAnalyser(my_text) This should output something similar to this: Question 4 - Text Analyser (30 pts) Write a Python function that will be calling multiple other utility functions that will do each a specific task. Given a text, each function will provide you with one of the following analysis: 1. The number of words in the text (6 pts) 2. For each word, how many times the word was repeated in the text (number of occurrences) (8 pts) 3. The top letter in terms of occurrences (the letter that is repeated the most throughout the text) (8 pts) Your text has: 10 words Hello: repeated 1 times class: repeated 2 times I! repeated 1 times hope: repeated 1 times that: repeated 1 times you: repeated 1 times are: repeated 1 times enjoying: repeated 1 times this: repeated 1 times Your text has 4 special characters: , ! :) The letter that is repeated the most is the letter: s, repeated 5 times

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!