I am trying to do something like this . The problem is that I cannot build a loop that does this.

Here is my code:
import parallel
import time
p=parallel.Parallel()
print ("Enter a string of numbers: ")
numStr = raw_input()
numList=list(numSTr)
numlen=len(numList)
numBin=[['1','0001'], ['2','0010'],
['4','0100'], ['5','0101'],
['6','0110'], ['7','0111'],
['8','1000'], ['9','1001'],
['3','0011'], ['0','0000']]
p.setData(0)
pos=['0001','0010','0100','1000']
c=(str(pos[])+str((numBin[][1])))
p.setData(int(c,2))
If someone can help me, it will be nice
The most significant bits that are in numBin determine which display to turn on. And the less significant is the number. For instance:
: {'7', '1', '5', '4', '8'}.
, , , "7". , 7, "0111", , "0001". , : '00010111'. . las 7.
"7" "1" .
X X X X
X X X 7
X X 7 1
X 7 1 5
7 1 5 4
1 5 4 8
5 4 8 X
4 8 X X
8 X X X
X X X X
"X" , , , .