Your datatype to define states, cities should be dictionary.
states = {
'Bihar' : 'BIH',
'Jharkhand' : 'JK',
'Bengal' : 'BEN',
'Tamilnadu' : 'TN',
'Haryana' : 'HY',
'Kerla' : 'KER'
}
You should change same for cities
.
Please follow this link to learn about dictionary .python doc