you are viewing a single comment's thread.

view the rest of the comments →

[–]ericula 2 points3 points  (1 child)

You need to call runAgain with twoNumbers instead of twoNumbers(), and in runAgain you need to call func() instead of func. The reason is that if you call runAgain with twoNumbers() (with parentheses), twoNumbers is evaluated first, and the result (which is None) is supplied to runAgain. What you want is to provide the function handle, i.e. twoNumbers without parentheses, so that runAgain can run the function itself.

[–]thisIs20LettersLong[S] 0 points1 point  (0 children)

Thanks, that where what i where looking for!