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

17th Nov 2017, 7:39 AM
Бауыржан
Бауыржан - avatar
6 Respuestas
+ 11
Do your own homework! If you're stuck, provide the code and specify your problem.
17th Nov 2017, 7:42 AM
qwerty
qwerty - avatar
+ 11
Try it yourself first then ask. Don't just tell people to do it for you without even trying.
17th Nov 2017, 8:00 AM
qwerty
qwerty - avatar
+ 4
Yeah! I could probably do it for you but where's the learning?
17th Nov 2017, 7:54 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
All I will say: class Home: def showRoom(self,quantity): # def showAddress(self, address): #
17th Nov 2017, 8:02 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Well and on it thanks
17th Nov 2017, 8:06 AM
Бауыржан
Бауыржан - avatar
+ 1
I will learn by looking at the example
17th Nov 2017, 7:56 AM
Бауыржан
Бауыржан - avatar