Skip to content

Instantly share code, notes, and snippets.

@aurotripathy
Created June 3, 2024 06:26
Show Gist options
  • Save aurotripathy/ad88dc17f0ba869e84e41e4c771477b8 to your computer and use it in GitHub Desktop.
Save aurotripathy/ad88dc17f0ba869e84e41e4c771477b8 to your computer and use it in GitHub Desktop.
def fibonacci(n: int):
"""Return a fibonacci series upto the argument n"""
# As prefix, we provided the function proto, a docstring...
# <codestral will fill in the middle, i.e., the algorithm>
# ...and the invocation (the suffix)
n = int(input('Enter a number: '))
print(fibonacci(n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment