I am working on a homework problem for an introductory level Python class and am having difficulty understanding functions involving defining multiple parameters.
I have already tried numerous attempts from a variety of online resources without any luck.
The question asks "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)."
This is the code that is displaying an incorrect expression.
def typing_speed(num_words,time_interval):
num_words>=0
time_interval>0
result=float((num_words)/(time_interval*60))
return result
Thank you for any help