[Tutor] recursivity and lists

Danny Yoo dyoo at hashcollision.org
Tue Mar 1 15:36:52 EST 2016


>
> Problem is that python complains that he cannot know the type of the
result of this function (list). In C++ I would specify the type, but from
what I understood, Python should not need this. What did I miss ?

Can you copy the exact stack trace of the error?  It'll help: you've
interpreted what the error means, which is useful, but it's also important
to show the unvarnished output too.  It will let us look and make our own
interpretations.

Good luck!


More information about the Tutor mailing list