func_code: def fibonacci(n):
      previous = 0
      current = 1
      i = 1
      if n < 1:
          return 0
      while i < n:
          temp = current
          current += previous
          previous = temp
          i = i + 1
      return current