Untitled

Anonymous
plain_text
09/22/2022 9:00 AM
264 B
21
Indexable
class point:
	""" point class represents and manipulate x,y """
	def _init_(self):
		""" create a new point at the origin"""
		self.x = 0
		self.y = 0
p = point()
q = point()

print(p.x,p.y,q.x,q.y)
Editor is loading...