To whom this may concern:
I am struggling on two questions:
Problem 2.
Suppose you are given a function leave(minute) which returns the number of
students
that leave an exam during its mth minute. Write a function already_left(t) that
returns the number of students that left at or before minute
Conner Crowe wrote:
To whom this may concern:
I am struggling on two questions:
Problem 2.
Suppose you are given a function leave(minute) which returns the number of
students that leave an exam during its mth minute. Write a function
already_left(t) that returns the number of students
On 10/04/14 03:04, Conner Crowe wrote:
*Problem 2.*
# Here's one possible stand-in:
def leave(minute):
if minute 0:
return minute
return 0
So far for this i have:
*def* *leave*(minute):
*if* minute 0:
*return* minute
*elif* minute=0:
*return* 0
Ignoring the