Help! UnboundLocalError: local variable 'B' referenced before assignment. Thanks!
if a >= 3:
A = (3 ^(int(log((a/3), 2)* 3)))
if b >= 3:
B = (3 ^(int(log((b/3), 2)* 3)))
if c >= 3:
C = (3 ^(int(log((c/3), 2)* 3)))
if d >= 3:
D = (3 ^(int(log((d/3), 2)* 3)))
if e >= 3:
E = (3 ^(int(log((e/3), 2)* 3)))
if f >= 3:
F = (3 ^(int(log((f/3), 2)* 3)))
if g >= 3:
G = (3 ^(int(log((g/3), 2)* 3)))
if h >= 3:
H = (3 ^(int(log((h/3), 2)* 3)))
if i >= 3:
I = (3 ^(int(log((i/3), 2)* 3)))
if j >= 3:
J = (3 ^(int(log((j/3), 2)* 3)))
puntaje = str(int(A + B + C + D + E + F + G + H + I + J + K + L))