def __str__(self):
    ' print out some basic information about the grid object '
    return '1-d grid: nx = {}, ng = {}'.format(self.nx, self.ng)
print out some basic information about the grid object
def __str__(self):
    '  '
    return '1-d grid: nx = {}, ng = {}'.format(self.nx, self.ng)