Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
python recursion example
wagner-cipriano
Oct 16th, 2016
173
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
#python recursion example
def
fat
(
x
)
:
""" calc fatorial de x """
if
(
x
==
1
)
:
return
1
else
:
return
x * fat
(
x -
1
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
8 min ago | 19.04 KB
Untitled
1 hour ago | 7.16 KB
Untitled
2 hours ago | 26.93 KB
Untitled
3 hours ago | 7.40 KB
Untitled
4 hours ago | 32.34 KB
Untitled
5 hours ago | 10.89 KB
Untitled
5 hours ago | 6.42 KB
Untitled
6 hours ago | 45.77 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!