How to create a variable number of variables in Python?

Posted by Editorial Staff | Updated on

Want to create a variable number of variables in Python? 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.


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