79098225

Date: 2024-10-17 13:12:02
Score: 1.5
Natty:
Report link

In example 1 f2 uses global a, but in example 2 it uses a from f1 function scope because f2 is a nested function. In other words the difference in variable scope. You can about it here

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey