Question: # Question 2 Create a function named `count_word` that accepts two arguments `text` and `word`. __Function arguments:__ This function accepts two arguments `text` and `word`.
# Question 2
Create a function named `count_word` that accepts two arguments `text` and `word`.
__Function arguments:__ This function accepts two arguments `text` and `word`. `word` is the argument that your function searches within a given `text` and counts how many times it occurs. `text` is the argument that your functions searches the `word` in and counts its occurance.
# Question 3
Create a function named `get_area_circle` that accepts one argument `r`, which is the radius of the circle
__Function arguments:__ This function accepts one argument, `r`. `r` is the radius of the circle whose area to be calculated
__What does it do:__ Computes the area of a circle with a radius `r`.
__What it returns:__ It returns the area of the circle with a radius `r`.
For Example,
`get_area_circle(3)`
should return
28.27
For Example,
`get_area_circle(1)`
should return
3.14
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
