+ 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?

22nd Feb 2017, 12:09 PM
Mayur Garg
Mayur Garg - avatar
2 Answers
+ 4
Thanks.. I will try this approach.
22nd Feb 2017, 2:55 PM
Mayur Garg
Mayur Garg - avatar