How To Create Array Of Objects In Python Code For Factorial Of A Number