Commit b403cc41 authored by Sanjna's avatar Sanjna

Upload new file

parent fa846969
import functools
import operator
from functools import reduce
def collapse(L) :
d = ' '
R = reduce(operator.add,L)
P = reduce(lambda x,y : x + d + y,R)
return P
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment