When calculating the cost to identify the Big O notation of this code, should I count following line too?
if(n == 0): print("Incorrect index No ")
if yes how to connect it with the loop
def FindFibonacci(n):
if(n == 0):
print("Incorrect index No ")
else:
n1 = 0
n2 = 1
x = 0
while (x<n):
print(n1)
fib = n1 + n2
n1 = n2
n2 = fib
x = x+1
num = int(input("How many Fibonacci sequences you want? "))
FindFibonacci(num)