You are using the wrong syntax to define a dictionary. You need to use {..}
(curly braces), not [..]
(square brackets, used for lists):
# states and their abbreviation
states = {
'Bihar': 'BIH',
'Jharkhand': 'JK',
'Bengal': 'BEN',
'Tamilnadu': 'TN',
'Haryana': 'HY',
'Kerla': 'KER',
}
# states with their cities
cities = {
'BIH': 'Patna',
'JK': 'Ranchi',
'BEN': 'Kolkatta',
}
The commas between key-value pairs are mandatory too.