import copy
class A(object):
def __init__(self, val):
self.val = val
a = A(1)
a_copy = copy.copy(a)
print("a val = ", a.val)
print("a_copy val = ", a_copy.val)
a.val = 10
print("a val = ", a.val)
print("a_copy val = ", a_copy.val)
a_copy.val = 25
print("a val = ", a.val)
print("a_copy val = ", a_copy.val)
aW1wb3J0IGNvcHkKCmNsYXNzIEEob2JqZWN0KToKCWRlZiBfX2luaXRfXyhzZWxmLCB2YWwpOgoJCXNlbGYudmFsID0gdmFsCiAKYSA9IEEoMSkKYV9jb3B5ID0gY29weS5jb3B5KGEpCiAKcHJpbnQoImEgdmFsID0gIiwgYS52YWwpCnByaW50KCJhX2NvcHkgdmFsID0gIiwgYV9jb3B5LnZhbCkKIAphLnZhbCA9IDEwCnByaW50KCJhIHZhbCA9ICIsIGEudmFsKQpwcmludCgiYV9jb3B5IHZhbCA9ICIsIGFfY29weS52YWwpCiAKYV9jb3B5LnZhbCA9IDI1CnByaW50KCJhIHZhbCA9ICIsIGEudmFsKQpwcmludCgiYV9jb3B5IHZhbCA9ICIsIGFfY29weS52YWwp