Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def listToNrRev(lst):
- if len(lst) == 0:
- return 0
- return lst[-1] * (10 ** (len(lst) - 1)) + listToNrRev(lst[:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement