We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Standardize Mobile Number Using Decorators
Standardize Mobile Number Using Decorators
Sort by
recency
|
214 Discussions
|
Please Login in order to post a comment
def wrapper(f): def fun(l, *args): # complete the function l = [str(i)[-1: -11: -1][::-1] for i in l] out = ["+91 "+ str(i[:5]) + " " + str(i[5:]) for i in l] out = f(out) return fun
def wrapper(f): def fun(l): return f(j[::-1] for j in [i[:-11:-1][:5]+ " " + i[:-11:-1][5:] +" 19+" for i in l]) return fun