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.
defwrapper(f):deffun(l):l=[f"+91 {x[-10:-5]}{x[-5:]}" for x in l]f(l)returnfun@wrapperdefsort_phone(l):print(*sorted(l),sep='\n')if__name__=='__main__':l=[input()for_inrange(int(input()))]sort_phone(l)
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 →