Create Array And Append Python Code