Standardize Mobile Number Using Decorators

  • + 0 comments

    def wrapper(sort_fun):

    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