LearnPy Hub
← Matplotlib Charts problems
Hard

Labels on Top of Bars

Draw a bar chart of the values and add labels with ax.bar_label(bars, fmt='%d units'). Print the text of each label, one per line.

Input

One line of integers.

Output

Lines.

Sample 1

Input
3 7 2
Output
3 units
7 units
2 units

Sample 2

Input
10
Output
10 units
solution.py
Output appears here
Labels on Top of Bars · Python practice problem · LearnPy Hub