I am working on a project in python and I need to split a list of numbers that has a random length into three equal parts. I have simplified code into a basic situation in order to find out the basic way that u can then used for my modular program using objects in the list and queues instead of just numbers. I really dont know how to split it so I just have it set up.
here is the basic code I have
import random
import Queue
lenth = random.randint(1,15)
l = []
for i in range(lenth):
im = random.randint(1,20)
l.append(im)
qOne = Queue.Queue()
qTwo = Queue.Queue()
qThree = Queue.Queue()