Sign in
bazel
/
bazel
/
dbd34bc5dc1acb54b1e2e535f551f6b6cd05dc97
/
.
/
examples
/
py_native
/
fibonacci
/
fib.py
blob: 645a937a0e3bee8fda2abbcc3e30d3f4e6bd7ade [
file
] [
log
] [
blame
]
David Chen
ea02b8a
2016-02-10 12:52:11 +0000
[
diff
] [
blame
]
1
"""An example binary to test the imports attribute of native Python rules."""
2
3
4
def
Fib
(
n
):
5
if
n
==
0
or
n
==
1
:
6
return
1
7
else
:
8
return
Fib
(
n
-
1
)
+
Fib
(
n
-
2
)