<qiyuangong>1310_XOR_Queries_of_a_Subarray_1.py
def xorQueries( arr: List[int], queries: List[List[int]]) -> List[int]:
    pref = [0]
    for e in arr:
        pref.append(e ^ pref[-1])
    ans = []
    for [l, r] in queries:
        ans.append(pref[r+1] ^ pref[l])
    return ans
def sample_funcname ( var_0 : List [ int ] , var_3 : List [ List [ int ] ] ) -> List [ int ] :
    var_5 = [ 0 ]
    for var_6 in var_0 :
        var_5.append ( var_6 ^ var_5 [ - 1 ] )
    var_9 = [ ]
    for [ var_10 , var_11 ] in var_3 :
        var_9.append ( var_5 [ var_11 + 1 ] ^ var_5 [ var_10 ] )
    return var_9
