+ 6
No. Of Objects based on user input possible?
Is it possible to create objects based on input from user in Python? For instance, I define a class Book. and in the main program ask the user for a integer input that specifies the no. of objects of class Book he wants to create. Is that possible in Python or maybe in any other programming language (C++ or Java)? If yes, how?
2 Réponses
+ 4
Thanks.. I will try this approach.