def _sumLists(a, b):
    """
    Algorithm to check validity of NBI and NIF.
    Receives string with a umber to validate.
    """
    val = 0
    for i in map(lambda a, b: a * b, a, b):
        val += i
    return val
def _sumLists ( a , b ) : val = 0 for i in map ( lambda a , b : a * b , a , b ) : val += i return val
Algorithm to check validity of NBI and NIF.
    Receives string with a umber to validate.