►
Run
#initialize dictionary aDict = { 'tallest building':'Burj Khalifa', 'longest river':'The Nile', 'biggest ocean':'The Pacific Ocean' } # get keys as list keys = [*aDict] #print the list print(keys)
Output