Here is the code as I currently have it:
def F(n):
t=time.time()
if n==0:
return (0)
elif n==1:
return (1)
else:
return (F(n-1)+F(n-2))
t1==time.time()
return t
F_time==t1-t
print ('It took',F_time,'seconds to sort',n,'values using recursion')
I'm trying to print n numbers of the Fibonacci sequence and take the time before and after, but because of the return statements, it won't accept the variable after the return, nor the following print statement.