I'm learning how to code with Python and I'm running into an issue with creating and calling on a Class, where I keep getting the following error:
AttributeError: 'set' object has no attribute 'party'
I typed the code in EXACTLY as they had it, and even tried copying their code and pasting it but nothing has gotten rid of the error. If anyone could help me understand what I'm doing wrong, I would greatly appreciate it! Code is below:
class PartyAnimal: x = 0 def party(self): self.x = self.x + 1 print("So Far", self.x) an = PartyAnimal() an.party() an.party() an.party()