i have few variables and i want to create a dictionary with these variables
such that the keys are the variable names and the corresponding values
are the variable values.how do i do this easily?
for ex:
var1='mark'
var2=['1','2','3']
my_dict = create_my_dictionary(var1, var2)

and my_dict is {'var1':'mark', 'var2':['1','2','3']}

is there a function for create_my_dictionary?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to