get list of keys in python from dict code example Example: python get dictionary keys d = {2:"hello"} d.values()