Advertisement
STANAANDREY

lsd4 hw3 b

Oct 22nd, 2022
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def listToNrRev(lst):
  2.     if len(lst) == 0:
  3.         return 0
  4.  
  5.     return lst[-1] * (10 ** (len(lst) - 1)) + listToNrRev(lst[:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement