Ch13 small typo

Bug #677964 reported by Louis on 2010-11-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thinkcspy
Undecided
Unassigned

Bug Description

def distance_from_origin(self):
    return ((self.x ** 2) + (self.y ** 2) ** 0.5)

should be:

def distance_from_origin(self):
    return ((self.x ** 2) + (self.y ** 2)) ** 0.5

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers