(str, max)
return res
Return the length of str, considering only characters below max.
Return the length of str, considering only characters below max.
Return the length of str considering only characters below max .
def selective_len(str, max):
    """Return the length of str, considering only characters below max."""
    res = 0
    for c in str:
        if ord(c) < max:
            res += 1
    return res
def selective_len ( str , max ) : res = 0 for c in str : if ord ( c ) < max : res += 1 return res