Create Array Using Range Python Function Vs Class