LearnPy Hub
← Matplotlib Charts problems
Easy

Bar Category Names

Read category names and values on two lines, draw ax.bar(names, values) and print the tick labels with [t.get_text() for t in ax.get_xticklabels()].

Input

Two lines.

Output

A Python list.

Sample 1

Input
A B C
1 2 3
Output
['A', 'B', 'C']

Sample 2

Input
Tea
5
Output
['Tea']
solution.py
Output appears here
Bar Category Names · Python practice problem · LearnPy Hub