I agree entirely, outputs are great and I consider it best practice to provide notebooks with outputs provided.
As a concrete example, this one-liner of Python code is much more interesting to those who don't recognize it when it's presented with the associated output.
4*sum([(random.random()**2 + random.random()**2)**.5 < 1 for _ in range(10**7)])/10**7
This is also useful, e.g. when viewing the read-only export of a notebook.
(The one-linear above is a monte-carlo simulation which approximates Pi. On one run, this result came to 3.1410416.)
As a concrete example, this one-liner of Python code is much more interesting to those who don't recognize it when it's presented with the associated output.
This is also useful, e.g. when viewing the read-only export of a notebook.(The one-linear above is a monte-carlo simulation which approximates Pi. On one run, this result came to 3.1410416.)