class Punto:
    x = 0
    y = 0

    def __str__(self):
        return str.format('{0} , {1}', self.x, self.y)


p1 = Punto()
print(p1.x)
p1.y = 5
print(str(p1))


class Punto3D:
    x = 0
    y = 0
    z = 0

    def __str__(self):
        return str.format('{0} , {1} , {2}', self.x, self.y, self.z)


p2 = Punto3D()
print(str(p2))
p2.x = 1
print(str(p2))
p2.__class__ = Punto
print(str(p2))
p1.__class__ = Punto3D
print(str(p1))
p2.__class__ = Punto3D
print(str(p2))
p2.z = 9
print(str(p2))
p2.__class__ = Punto
print(str(p2))
print(dir(p2))

9d22b31a68c5df279c7341125580c52b3baf3116
class Punto:
    <mask token>
    <mask token>
    <mask token>


<mask token>


class Punto3D:
    x = 0
    y = 0
    z = 0

    def __str__(self):
        return str.format('{0} , {1} , {2}', self.x, self.y, self.z)


<mask token>

class Punto:
    x = 0
    y = 0

    def __str__(self):
        return str.format('{0} , {1}', self.x, self.y)


<mask token>


class Punto3D:
    x = 0
    y = 0
    z = 0

    def __str__(self):
        return str.format('{0} , {1} , {2}', self.x, self.y, self.z)


<mask token>

class Punto:
    x = 0
    y = 0

    def __str__(self):
        return str.format('{0} , {1}', self.x, self.y)


<mask token>
print(p1.x)
<mask token>
print(str(p1))


class Punto3D:
    x = 0
    y = 0
    z = 0

    def __str__(self):
        return str.format('{0} , {1} , {2}', self.x, self.y, self.z)


<mask token>
print(str(p2))
<mask token>
print(str(p2))
<mask token>
print(str(p2))
<mask token>
print(str(p1))
<mask token>
print(str(p2))
<mask token>
print(str(p2))
<mask token>
print(str(p2))
print(dir(p2))

class Punto:
    x = 0
    y = 0

    def __str__(self):
        return str.format('{0} , {1}', self.x, self.y)


p1 = Punto()
print(p1.x)
p1.y = 5
print(str(p1))


class Punto3D:
    x = 0
    y = 0
    z = 0

    def __str__(self):
        return str.format('{0} , {1} , {2}', self.x, self.y, self.z)


p2 = Punto3D()
print(str(p2))
p2.x = 1
print(str(p2))
p2.__class__ = Punto
print(str(p2))
p1.__class__ = Punto3D
print(str(p1))
p2.__class__ = Punto3D
print(str(p2))
p2.z = 9
print(str(p2))
p2.__class__ = Punto
print(str(p2))
print(dir(p2))
