Jul-23-2020, 04:31 AM
A few other things:
1. Your indentation is a mess, so Python should be raising an
2. On line 6, it looks like you're trying to call your function recursively and that doesn't make sense because you'd just end up in infinite recursion. That won't happen anyway, because you're trying to call the function with two arguments but the signature says it only takes one (line 5). Python doesn't let you overload functions in the same way that say, Java does.
1. Your indentation is a mess, so Python should be raising an
IndentationError
about it.2. On line 6, it looks like you're trying to call your function recursively and that doesn't make sense because you'd just end up in infinite recursion. That won't happen anyway, because you're trying to call the function with two arguments but the signature says it only takes one (line 5). Python doesn't let you overload functions in the same way that say, Java does.