lastNumber = int(input("Enter last number of series: "))
firstNumber, secondNumber = 0, 1
for i in range(0, lastNumber):
firstNumber, secondNumber = secondNumber, firstNumber + secondNumber
Enter last number of series: 10
I am a programmer from India, and I am here to guide you with Data Science, Machine Learning, Python, and C++ for free. I hope you will learn a lot in your journey towards Coding, Machine Learning and Artificial Intelligence with me.