How to print the name of a list?

oriana.falco at thalesesec.com oriana.falco at thalesesec.com
Mon Aug 22 18:24:06 CEST 2005


Hi!

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....
Oriana




More information about the Python-list mailing list