<doocs>0657.Robot Return to Origin_1.py
def judgeCircle( moves: str) -> bool:
    x = y = 0
    for c in moves:
        if c == 'R':
            x += 1
        elif c == 'L':
            x -= 1
        elif c == 'U':
            y += 1
        elif c == 'D':
            y -= 1
    return x == 0 and y == 0
def sample_funcname ( var_0 : str ) -> bool :
    var_5 = var_3 = 0
    for var_6 in var_0 :
        if var_6 == 'R' :
            var_5 += 1
        elif var_6 == 'L' :
            var_5 -= 1
        elif var_6 == 'U' :
            var_3 += 1
        elif var_6 == 'D' :
            var_3 -= 1
    return var_5 == 0 and var_3 == 0
