def execute(self):
        """Give a list of areas in the world, as well as their level ranges."""
        the_areas = ['%s (level range: %s) ' % (area.title, area.level_range) \
                     for area in self.world.areas.values()]
        message = ' Areas '.center(50, '-') + '\n'
        if not the_areas:
            message += 'Sorry, God has taken a day off. There are no areas yet.'
        else:
            message += '\n'.join(the_areas)
        message += '\n' + ('-' * 50)
        self.pc.update_output(message)
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Areas.execute/original