How do I create a variable number of variables?

Posted by Pinki | Updated on

You can use dictionaries to accomplish this. Dictionaries are stores of keys and values.

You can use variable key names to achieve the effect of variable variables without the security risk.

For cases where you’re thinking of doing something like:

That’s all, we hope this helped you!

Reference: https://stackoverflow.com/questions/1373164/how-do-i-create-a-variable-number-of-variables


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers