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:
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.