Dynamic variable names: Difference between revisions

→‎{{header|Python}}: Add note on use of dictionary.
(→‎{{header|Python}}: Add note on use of dictionary.)
Line 158:
>>> X
42</lang>
 
Note: most of the time when people ask how to do this on newsgroups and other forums, on investigation, it is found that a neater solution is to map name to value in a dictionary.
 
=={{header|R}}==
Anonymous user