Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Jun 3, 2021
Embed
What would you like to do?
lastNumber = int(input("Enter last number of series: "))
firstNumber, secondNumber = 0, 1
for i in range(0, lastNumber):
print(firstNumber)
firstNumber, secondNumber = secondNumber, firstNumber + secondNumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment