Skip to content

Instantly share code, notes, and snippets.

@RHDZMOTA
Last active November 25, 2021 06:03
Show Gist options
  • Save RHDZMOTA/adb81cf2e4c49b360e889ca6b51e7d68 to your computer and use it in GitHub Desktop.
Save RHDZMOTA/adb81cf2e4c49b360e889ca6b51e7d68 to your computer and use it in GitHub Desktop.
i, a, b = (0, 0, 1); s=(
'i, a, b = (i+1, b, a+b);'
'print(f"i, a, b = ({i}, {a}, {b}); s={repr(s)}; exec(s) # fib({i})={a} ")'
); exec(s) # fib(0)=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment