<doocs>0093.Restore IP Addresses_1.py
def check(s):
    if not (0 <= int(s) <= 255):
        return False
    if s[0] == '0' and len(s) > 1:
        return False
    return True
def sample_funcname ( var_0 ) :
    if not ( 0 <= int ( var_0 ) <= 255 ) :
        return False
    if var_0 [ 0 ] == '0' and len ( var_0 ) > 1 :
        return False
    return True
