Re: [Tutor] loop running twice?

2013-11-17 Thread Alan Gauld
On 17/11/13 01:00, Byron Ruffin wrote: > When this is run it appears that determineMonthsTilSaved is > running twice before the loop ends. It is supposed to run > until saved than goal, but look at the output. You haven't sent the output, just the code... > It runs again even after saved goal.

[Tutor] loop running twice?

2013-11-17 Thread Byron Ruffin
def main(): goal, apr, deposit = getSavingsDetails() determineMonthsTilSaved( goal, apr, deposit ) months = determineMonthsTilSaved(goal, apr, deposit) summarize( months ) def getSavingsDetails(): """ goal = float( input( "Principal sought? $" ) ) apr = float( input(