We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://share.sourceacademy.org/kojls
def fact_iter(product, counter, max_count): if counter > max_count: return product else: return fact_iter(counter * product,counter + 1, max_count) def factorial_iterative(n): return fact_iter(1, 1, n) factorial_iterative(5)
gives:
Line 14: ExpectedTokenError: SyntaxError at line 14 column 9 def factorial_iterative(n): ^ Expected indent. Found 'return'.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://share.sourceacademy.org/kojls
gives:
The text was updated successfully, but these errors were encountered: