I would like to compact the following example in a for loop or some other method that allows to use something like an index, instead of having a distinct code for each queue object. This should be in conjunction to the queue class initialization (and their respective put/get/etc. action), not directly to their actual content. Is this possible ?
import queue
q0 = queue.Queue()
q0.put("aa")
q1 = queue.Queue()
q1.put("bb")
q2 = queue.Queue()
q2.put("cc")
# ...
qn = queue.Queue()
qn.put("xx")
print (q0.get())
print (q1.get())
print (q2.get())
# ...
print (qn.get())