Re: [Tutor] Question regarding Python loops

2014-04-10 Thread Alan Gauld
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 me

Re: [Tutor] Question regarding Python loops

2014-04-10 Thread Peter Otten
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 studen

[Tutor] Question regarding Python loops

2014-04-10 Thread Conner Crowe
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 t