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 {num[-10:-5]}{num[-5:]}" for num 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)
def fun(arg_l):
# complete the function
numeros = []
for i in map(str, arg_l):
recortar = i[-10:]
num = f"+91 {recortar[:5]} {recortar[5:]}"
numeros.append(num)
return sort_fun(numeros)
return fun
Please Login in order to post a comment