- 1
Declare a class Home.
Declare a class Home. Inside Home define functions showRoom(self,quantity) and showAddress(self, address), which are respectively print quantity of room in home and home address Additionally, write the code to build two objects of class Home and call by objects showRoom, showAddress methods.
6 ответов
+ 11
Do your own homework! If you're stuck, provide the code and specify your problem.
+ 11
Try it yourself first then ask. Don't just tell people to do it for you without even trying.
+ 4
Yeah! I could probably do it for you but where's the learning?
+ 4
All I will say:
class Home:
def showRoom(self,quantity):
#
def showAddress(self, address):
#
+ 2
Well and on it thanks
+ 1
I will learn by looking at the example