Advertisement
STANAANDREY

lsd4 hw3 a

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