-
Notifications
You must be signed in to change notification settings - Fork 0
Update main.py #3
New issue
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -29,6 +29,7 @@ def nth_fibonacci_util(n, memo): | |||||||
memo[n] = nth_fibonacci_util(n - 1, memo) + nth_fibonacci_util(n - 2, memo) | ||||||||
|
||||||||
return memo[n] | ||||||||
new pr | ||||||||
|
||||||||
Comment on lines
31
to
33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove stray line – it breaks the file at runtime
Quick fix – delete the line or turn it into a comment: - return memo[n]
- new pr
+ return memo[n] # ← last reachable statement; nothing should follow Because it appears after a 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Ruff (0.12.2)32-32: SyntaxError: unindent does not match any outer indentation level 32-32: SyntaxError: Simple statements must be separated by newlines or semicolons 🤖 Prompt for AI Agents
|
||||||||
|
||||||||
# Wrapper function that handles both initialization | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line contains
new pr
, which is not valid Python syntax. This will cause aSyntaxError
and prevent the script from running. It appears to be a stray note or placeholder that was accidentally committed. Please remove this line to resolve the error.