this may sound like a strange question from a Python noob, but here's the deal. I have a list with a bunch of (string) entries. I want to take one of those entries, add another string to the end of it, and then create a new array with that name. Eg, I have
list=["foo","bar"]
and I want to get something to the effect of
fooblah = []
I've been trying to do it this way
list[0] + "blah" = []
Obviously this doesn't work because the first part is a string instead of a variable name, but I'm not sure how to fix it. From what I've read of other people's problems, the solution might be in using a dictionary instead (?), but to be honest I'm not really sure how dictionaries work yet.
Thanks, J.
[ ]operator just like arrays, except that the keys don't have to be integers.