"manstey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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' > > Thanks, > Matthew >
Try this. -- Paul >>> tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh')) >>> for nam,val in tupGlob: locals()[nam]=val ... >>> VOWELS 'aeiou' >>> CONS 'bcdfgh' >>> -- http://mail.python.org/mailman/listinfo/python-list