From 92b51963cfd6a255e6ab2f116176ef407e800c51 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 15 Jul 2019 21:48:38 +0200 Subject: [PATCH] Added 'bits' to the entropy output --- calc_entro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc_entro.py b/calc_entro.py index ac70f33..23b74b9 100644 --- a/calc_entro.py +++ b/calc_entro.py @@ -33,7 +33,7 @@ def printEntropy(original, entropy, alphabet, simple): if simple == False: print('Content: ' + original) print('Probabilities: ' + str(alphabet)) - print('Entropy: ' + str(entropy)) + print('Entropy: ' + str(entropy) + ' bits') print('---')