I have multiple dictionaries which contain some information, for example:
northLine = {
    'capacity': 100,
    'name': 'Delhi' 
}
eastLine = {
    'capacity': 110,
    'name': 'Rajasthan' 
}
westLine = {
    'capacity': 120,
    'name': 'Orissa' 
}
southLine = {
    'capacity': 130,
    'name': 'J&K' 
}
I have an input list that basically tells us that which line should we use, for example, if it says that [west, north] then it should pick the values from west and north lines only.
My code:
northLine = {
    'capacity': 100,
    'name': 'Delhi' 
}
eastLine = {
    'capacity': 110,
    'name': 'Rajasthan' 
}
westLine = {
    'capacity': 120,
    'name': 'Orissa'
}
southLine = {
    'capacity': 130,
    'name': 'J&K' 
}
listOfZone = ['west', 'south']
for i in listOfState:
    print(i+'Line'['name'])
Can somebody please help?
 
     
    