Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~180 People Reached
Favorite Forums
Favorite Tags
Member Avatar for onely

class Point: def __main__(self, x=0, y=0): self.x = x self.y = y def distance_from origin(self): return ((x ** 2) + (y ** 2)) ** 0.5 def distance_between_points(a, b): return distance_from_origin(a) - distance_from_origin(b) I get a global variable error when I try to run the function at the bottom.

Member Avatar for woooee
0
180