Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sum(x):
- if x is 1:
- return x
- return x + sum(x-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement