diff options
Diffstat (limited to 'examples/py_native/fibonacci/fib.py')
-rw-r--r-- | examples/py_native/fibonacci/fib.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/py_native/fibonacci/fib.py b/examples/py_native/fibonacci/fib.py new file mode 100644 index 0000000000..645a937a0e --- /dev/null +++ b/examples/py_native/fibonacci/fib.py @@ -0,0 +1,8 @@ +"""An example binary to test the imports attribute of native Python rules.""" + + +def Fib(n): + if n == 0 or n == 1: + return 1 + else: + return Fib(n-1) + Fib(n-2) |