Function returns old value

Paul Bryan pbryan at anode.ca
Fri Dec 11 21:07:21 EST 2020


It won't return until the inner call to question (and it's not using
the return value on inner call). Eventually, (and not until you answer
yes) it will return the first answer.

On Fri, 2020-12-11 at 18:55 -0700, Joe Pfeiffer wrote:
> Bischoop <Bischoop at vimart.net> writes:
> 
> > I've function asking question and comparing it, if is not matching
> > 'yes'
> > it does call itself to ask question again. The problem is that when
> > function is called second time it returns old value or with
> > additional
> > else statement it returns none.
> > 
> > Code: https://bpa.st/KVGA
> 
> It calls itself again, but what does it return in that case?



More information about the Python-list mailing list