On 2017-03-30, Elo Okonkwo <elo.okon...@gmail.com> wrote:
> Thanks so much everyone.
>
> I've figured it out. It was the recursive bit that got me
> confused, its a bit difficult debugging recursive functions.

It doesn't have to be!

I recommend debugging recursive functions with small,
easy-to-think-about test cases, and slowly build them up.

Do not try to debug by starting with a typical case.

-- 
Neil Cerutti

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to