hellow im write the code above :
class val:
def __init__(self, value, TYPE):
val.value = value
val.TYPE = TYPE
u = val([1, -3], 'polar')
v = val([0, 2], 'cartesian')
print(u.value)
print(u.TYPE)
print(v.value)
print(v.TYPE)
but the output is :
[0, 2]
cartesian
[0, 2]
cartesian
why the first instance has changed (I expected to get [1, -3] in the first row)