by mischief on Thu Apr 23, 2009 7:37 am
([msg=22356]see Re: Python Annuity Calculator[/msg])
you can do it with some sort of loop.
you could set it up like this (psuedocode, i don't know python)
- Code: Select all
function Enterdata()
{
// enter data here?
}
while(true)
// keep looping until killed
{
EnterData()
// possibly ask user if they want to enter data again
}
the way i believe you're doing it is a crude form of recursion, which is kinda bad practice.
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha