This question already has an answer here:
- Adding a label to an expression result 3 answers
Is there a way to have Mathematica automatically print the name of the variable during an evaluation when the semi-colon is suppressed. So for instance, Matlab would do this:
>> a = 1 a = 1 >> 1 + 1 ans = 2 >>
which makes it very easy to follow the computations. In many cases, we may have a list of Mathematica evaluations, but the output is only organized sequentially, which makes reading it difficult.
They do list Out[number] on the left of the Notebook, but this is entirely unhelpful. I've seen questions about a function that can print out the value of a variable and its name, but this is not quite the same question.