Apr-07-2019, 05:54 AM
This is list, not array:
>>> arr = ["hello", "my", "name", "is", "name", "hello", "my", "name", "is", "name2", "hello", "my", "name", "is", "name3"] >>> type(arr) listIf you want array in Python then:
>>> import array >>> arr = array.array('d', [1, 2, 3]) >>> arr array('d', [1.0, 2.0, 3.0]) >>> type(arr) array.arraySo, with high probability you want split list and not array. If length of chunks are known you can take advantage of slicing. If there is keyword on which list must be splitted then you can take advantage slicing combined with indexing the keyword.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.