Hello, all
Let's say I have a Dictionary:
{'S':0,'H':0,'A':0,'L':0}
Now, I just want to create an array with many dictionaries, as follows:
[{'S':0,'H':0,'A':0,'L':0},{'S':0,'H':0,'A':0,'L':0},{'S':0,'H':0,'A':0,'L':0},....]
Have a look at my code:
weightMatrix = []
for k in range(motifWidth):
weightMatrix[k] = {'A':0,'C':0,'G':0,'T':0}
But, I know it isn't working.
Can anyone give me some suggestions?
Thanks in Advance :)