# Answer to Question #47303 in Python for Nathan

Question #47303

How would I write code for this function?

Write the definition of a function typing_speed , that receives two parameters. The first is the number of words that a person has typed (an int greater than or equal to zero) in a particular time interval. The second is the length of the time interval in seconds (an int greater than zero). The function returns the typing speed of that person in words per minute (a float ).

Write the definition of a function typing_speed , that receives two parameters. The first is the number of words that a person has typed (an int greater than or equal to zero) in a particular time interval. The second is the length of the time interval in seconds (an int greater than zero). The function returns the typing speed of that person in words per minute (a float ).

Expert's answer

def typing_speed(num_of_words, time):

return num_of_words * 60 / time

return num_of_words * 60 / time

## Comments

## Leave a comment