Question: Python, Class & OOP, Please comment out. In textbook we created our first class partyAnimal as follows: class Partyaninal: def party ( self ) -
Python, Class & OOP, Please comment out.

In textbook we created our first class "partyAnimal" as follows: class Partyaninal: def party ( self ) - print, "Hi party member") Try to define two new variables (name, totaldumber) and a new method called 'display()' in the class, so that each time after we create an instance, we call method 'display()' to print out the name for the instance and calculate the total number for all the instances created. Welcome to the party, Jon Snow I So far we have totally 1 guests! Welcome to the party, Daenerys Targaryen ! So far we have totally 2 guests
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
