Sparkline in unicode: Difference between revisions

→‎{{header|Python}}: Reverted to match original task description. See Talk:Sparkline_in_unicode#Bar choices
(Reordered entries.)
(→‎{{header|Python}}: Reverted to match original task description. See Talk:Sparkline_in_unicode#Bar choices)
Line 42:
<lang python>import re
 
# Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 96089609
bar = '▁ ▂ ▃ ▅ ▆ ▇ '.split()
barcount = len(bar) - 1
while True:
Line 56:
 
{{out}}
<pre>Numbers separated by space/commas: 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
min: 1.000000; max: 7.000000
▁▂▃▅▆▇▉▇▆▅▃▂▁
▁▂▃▄▅▆▇█▇▆▅▄▃▂▁
Numbers separated by space/commas: 1.5, 0.5 3.5, 2.5 5.5, 4.5 7.5, 6.5
min: 0.500000; max: 7.500000
▁▁▃▂▆▅▉▇</pre>
▂▁▄▃▆▅█▇</pre>
Anonymous user