Change
self.giraffe_spots = spots
to
self.spots = spots
Since you only supplied a tip of the iceburg, I must do so in kind.
Bob
hi,
i ran across these codes in a book i read:
>>> class Giraffes:
def __init__(self, spots):
self.giraffe_spots = spots
when I assign an object, let's say:
harold=Giraffe(100)
the error message quickly pops up. The funny thing is when I copy the codes for the class above directly from the ebook, I could assign the object, but when I typed it myself the codes just don't run. What I understand from the error message is that the object doesn't need parameter. Please help me.
Thank you.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic