I want to calculate the variance of values in list x1. Could anyone fix the error in this code?!
def my_mean(L):
    s = 0
    for i in range(0, len(L)):
        s = s + L[i]
    return s / len(L)
def my_var(L):
    t = 0
    for i in range(0, len(L)):
        t = t + L[i] - def my_mean(L) 
    return t*t / len (L)
x1 = [1, 3, 4, -3, 8]
v1 = my_var(x1)
print(v1)