manstey wrote: > Hi, > > If I have a tuple like this: > > tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh')) > > is it possible to write code using tupGlob that is equivalent to: > VOWELS = 'aeiou' > CONS = ''bcdfgh'
could you use a dictionary instead? i.e. >>> tupGlob = {'VOWELS':'aeiou', 'CONS':'bcdfgh'} >>> tupGlob['VOWELS'] 'aeiou' >>> tupGlob['VOWELS'] = 'aeiou AndSometimesY' >>> tupGlob['VOWELS'] 'aeiou AndSometimesY' nate -- http://mail.python.org/mailman/listinfo/python-list