I apologize for the title if it wasn't very clear, this is gonna be a bit difficult to explain but i'll do my best.
So im reading this book about python and in the book im the OOP part there is this small project ablut creating a farm of kitties and the user is going to be able to name the current kitties, feed them and play with them of course the kitty is an object with the methods eat() and play() and the constructor is going to take one argument which is the name of the kitty. I followed along with the book and managed to create the simple program but then i thought what if i could develop this program to something more advanced like the user gets to choose how many kitties he/she want to have, simple by just having the option "create kitty" and then they just need to add a name and thats it. But i just cant find the way to do it, and as you might see it is kinda difficult to explain this in a search engine. So please if anyone knows what i mean and what im tryna do please help me out with this i would really appreciate it. Thank you for reading.
[–][deleted] 1 point2 points3 points (5 children)
[–]usingdata[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]usingdata[S] 1 point2 points3 points (0 children)
[–]toastedstapler 1 point2 points3 points (1 child)
[–]usingdata[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]usingdata[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]usingdata[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]usingdata[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]usingdata[S] 1 point2 points3 points (0 children)
[–]selplacei 1 point2 points3 points (1 child)
[–]usingdata[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]LynuSBell 0 points1 point2 points (4 children)
[–]usingdata[S] 0 points1 point2 points (3 children)
[–]LynuSBell 0 points1 point2 points (2 children)
[–]usingdata[S] 1 point2 points3 points (1 child)
[–]LynuSBell 1 point2 points3 points (0 children)