Hi; I have this code: i = 0 nameNos = [] nos = [] for option in ourOptions(): nameNos.append('optionNo%d' % i) nos.append(i) i += 1
The idea is that through every iteration of option, I can create a new variable such as 'optionNo0', 'optionNo1' etc and assign values such as '0', '1' etc to them. Of course that code doesn't work. What would? TIA, Victor
-- http://mail.python.org/mailman/listinfo/python-list