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):returnf(sorted([f"+91 {num[-10:-5]}{num[-5:]}" for num in 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 →