Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from functools import reduce
- def reducing(xs,n=0):
- while n < 10:
- i=0
- while i<len(xs):
- if type(xs[i])==type(1):
- xs[i]=[xs[i]]
- i=i+1
- xs= reduce(lambda x,y:x+y,xs)
- n+=1
- return xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement