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.
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
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Standardize Mobile Number Using Decorators
You are viewing a single comment's thread. Return to all comments →
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