format cetak bulat python

>>> '{number:.{digits}f}'.format(number=p, digits=n)
'3.1416'
Courageous Cobra