Anonymous user
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
bar = '▁ ▂ ▃
barcount = len(bar) - 1
while True:
Line 56:
{{out}}
<pre>Numbers separated by space/commas: 1 2 3 4 5 6
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>
|