Iterating Through An Array Python Definition