From 07ba6470957b960a2756f7be48a7d4ee7b411d03 Mon Sep 17 00:00:00 2001 From: Ali Saadati Date: Wed, 20 Jan 2021 11:36:47 +0330 Subject: [PATCH] again fix avogadro.py to print output with only four decimal places --- avogadro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro.py b/avogadro.py index 57f3904..b7c123c 100644 --- a/avogadro.py +++ b/avogadro.py @@ -32,7 +32,7 @@ def main(): k = (6 * D * math.pi * 9.135e-4 * 5e-7) / 297 # print resaults - print("Boltzman : {:.4}\nAvogadro : {:.4}".format(k, 8.31446/k)) + print("Boltzman : {:.5}\nAvogadro : {:.5}".format(k, 8.31446/k))