code: def nth_fibonacci_4(n):
      dp0, dp1 = 0, 1
  
      for i in range(n):
          dp0, dp1 = dp1, dp0 + dp1  # "Pythonic way"
          # or dp1 += dp0; dp0 = dp1 - dp0; in other languages
  
      return dp0
  
file_path: coding-problems/Other/nth_fibonacci_number.py
imports: import math
label_desc: Use image node_id 4 for calling a global function with example usage: nth_fibonacci_4(n) and returns: dp0