You are viewing a single comment's thread. Return to all comments →
def wrapper(f): def fun(l): l1= [i[::-1][0:10][::-1] for i in l] l2= [("+91 "+str(i[0:5]+" "+str(i[5::]))) for i in l1] return f(l2) return fun @wrapper def sort_phone(l): print(*sorted(l), sep='\n') if __name__ == '__main__': l = [input() for _ in range(int(input()))] sort_phone(l)
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 →