'Prints the ferrer diagram of a partition.
Examples
>>> from sympy.combinatorics.partitions import IntegerPartition
>>> print(IntegerPartition([1, 1, 5]).as_ferrers())'

def as_ferrers(self, char='#'):

    return '\n'.join([(char * i) for i in self.partition])
