Created
June 3, 2024 06:26
-
-
Save aurotripathy/ad88dc17f0ba869e84e41e4c771477b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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