Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to generate a list of sums {a, b, c, d, ..., z}

and assign them to a list of variables such that

b[1] = a

b[2] = b 

b[3] = c


b[26] = z
share|improve this question

Presuming your list of sums is a list of numbers -- for example something like what the following generates

SeedRandom[42]; sums = RandomReal[100., 26]


Evaluate[Array[b, 26]] = sums;

will do it. You can check that the assignments have all been made as requested by evaluating

Table[b[i], {i, 26}] == sums


You can also view them directly



share|improve this answer

Evaluate[Array[b, 26]] = CharacterRange["a", "z"];

enter image description here

share|improve this answer
Array[(b[#] = FromCharacterCode[# + 96]) &, 26]
share|improve this answer

Unless there are other needs, I'll consider using a single "variable" bl and assign your whole list to it

bl = {a, b, ... }

You can of course access every single element of the list with Part (i.e. double braket)


Often using a single "variable" offer more opportunities in subsequent computations.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.