Guftugu-Cities

Last updated: April 20th, 20212021-04-20Project preview
In [38]:
country=dict()
In [39]:
# contry
country['Pakistan'] = dict() 
In [40]:
 #capital/provinces/state
country['Pakistan']['Islamabad'] = dict() 
country['Pakistan']['Punjab'] = dict() 
country['Pakistan']['Sindh'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] = dict() 
country['Pakistan']['Balochistan'] = dict() 
country['Pakistan']['Azad Kashmir'] = dict() 
country['Pakistan']['Gilgit-Baltistan'] = dict() 
In [42]:
#divisions
country['Pakistan']['Islamabad']['Islamabad'] = dict()  

country['Pakistan']['Punjab']['Bahawalpur'] = dict() 
country['Pakistan']['Punjab']['Dera Ghazi Khan'] = dict() 
country['Pakistan']['Punjab']['Faisalabad'] = dict() 
country['Pakistan']['Punjab']['Gujranwala'] = dict() 
country['Pakistan']['Punjab']['Lahore'] = dict() 
country['Pakistan']['Punjab']['Multan'] = dict() 
country['Pakistan']['Punjab']['Rawalpindi'] = dict() 
country['Pakistan']['Punjab']['Sahiwal'] = dict() 
country['Pakistan']['Punjab']['Sargodha'] = dict() 

country['Pakistan']['Sindh'] ['Banbhore'] = dict() 
country['Pakistan']['Sindh'] ['Hyderabad'] = dict() 
country['Pakistan']['Sindh'] ['Karachi'] = dict() 
country['Pakistan']['Sindh'] ['Sukkur'] = dict() 
country['Pakistan']['Sindh'] ['Larkana'] = dict() 
country['Pakistan']['Sindh'] ['Mirpur Khas'] = dict() 
country['Pakistan']['Sindh'] ['Shaheed Benazirabad'] = dict() 

country['Pakistan']['Balochistan'] ['Kalat'] = dict() 
country['Pakistan']['Balochistan'] ['Makran'] = dict() 
country['Pakistan']['Balochistan'] ['Naseerabad'] = dict() 
country['Pakistan']['Balochistan'] ['Quetta'] = dict() 
country['Pakistan']['Balochistan'] ['Sibi'] = dict() 
country['Pakistan']['Balochistan'] ['Zhob'] = dict() 
country['Pakistan']['Balochistan'] ['Rakhshan'] = dict() 

country['Pakistan']['Azad Kashmir'] ['Mirpur'] = dict() 
country['Pakistan']['Azad Kashmir'] ['Muzaffarabad'] = dict() 
country['Pakistan']['Azad Kashmir'] ['Poonch'] = dict() 

country['Pakistan']['Gilgit-Baltistan'] ['Gilgit'] = dict() 
country['Pakistan']['Gilgit-Baltistan'] ['Baltistan'] = dict() 
country['Pakistan']['Gilgit-Baltistan'] ['Diamer'] = dict() 

country['Pakistan']['Khyber-Pakhtunkhwa'] ['Bannu'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Dera Ismail Khan'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Hazara'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Kohat'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Malakand'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Mardan'] = dict() 
country['Pakistan']['Khyber-Pakhtunkhwa'] ['Peshawar'] = dict() 
In [43]:
import pprint
pp = pprint.PrettyPrinter(depth=4)
pp.pprint(country)
{'Pakistan': {'Azad Kashmir': {'Mirpur': {}, 'Muzaffarabad': {}, 'Poonch': {}},
              'Balochistan': {'Kalat': {},
                              'Makran': {},
                              'Naseerabad': {},
                              'Quetta': {},
                              'Rakhshan': {},
                              'Sibi': {},
                              'Zhob': {}},
              'Gilgit-Baltistan': {'Baltistan': {}, 'Diamer': {}, 'Gilgit': {}},
              'Islamabad': {'Islamabad': {}},
              'Khyber-Pakhtunkhwa': {'Bannu': {},
                                     'Dera Ismail Khan': {},
                                     'Hazara': {},
                                     'Kohat': {},
                                     'Malakand': {},
                                     'Mardan': {},
                                     'Peshawar': {}},
              'Punjab': {'Bahawalpur': {},
                         'Dera Ghazi Khan': {},
                         'Faisalabad': {},
                         'Gujranwala': {},
                         'Lahore': {},
                         'Multan': {},
                         'Rawalpindi': {},
                         'Sahiwal': {},
                         'Sargodha': {}},
              'Sindh': {'Banbhore': {},
                        'Hyderabad': {},
                        'Karachi': {},
                        'Larkana': {},
                        'Mirpur Khas': {},
                        'Shaheed Benazirabad': {},
                        'Sukkur': {}}}}
In [ ]:
 
Notebooks AI
Notebooks AI Profile20060