I wish to create a collection of variables named: e0, e1, ...en where n will be specified. How can I dynamically create these vaiables. An inferior method would be to create a dictionary e and have e[0]=...,e[1]=...
why would a dictionary be inferior? http://techblog.ironfroggy.com/2007/06/dynamic-hell.html http://forums.devshed.com/python-programming-11/dynamic-variable-declaration-140173.html http://stackoverflow.com/questions/5036700/how-can-you-dynamically-create-variables-in-python-via-to-a-while-loop maybe you could get a good answer on the #python irc channel
When it comes to Python I'm just a beginner, but with gawk it's very simple to do the trick by using a matrix, is that similar to what you call a dictionary ?
Join our real-time social learning platform and learn together with your friends!