How to print the name of a list?

oriana.falco at oriana.falco at
Mon Aug 22 12:24:06 EDT 2005


I was wondering what can I do to print the name of a list that is
inside a list. For example:

exported = ['123','456']
imported = ['789','012']

client1 = ['cl1b','cl1a']
client2 = ['cl2a','cl2b']

host = ['imported','exported']
client = ['client1','client2']

list = ['host', 'client']

My goal is to print a string that reads:
'host imported 789'
 ...and subsequently print more strings that read:
'host imported 012'
'host exported 123'
'host exported 456' 

Thanks in advance for the help....

More information about the Python-list mailing list