Posts by Emanuel Holanda Barroso • 11 points
1 post
-
0
votes1
answer56
viewsQ: what is the error of this code
class Point3D(object): def _init_(self,x,y,z): a=str(x) self.x=a a=str self.y=a a=a+"," a=str(z) self.z=a def _repr_(self): return "(%d,%d,%d)"%(self.x,self.y,self.z) my_point=Point3D(1,2,3)…
pythonasked Emanuel Holanda Barroso 11