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