LearnPy Hub
← Matplotlib Charts problems
Medium

Error Bars

Read values and their errors on two lines. Draw ax.errorbar(x, values, yerr=errors, capsize=…) with x = 0, 1, 2, … and the capsize read from the third line. Print the number of points on the data line and the number of cap lines (0 when capsize is 0).

Input

Values, errors, capsize.

Output

One line.

Sample 1

Input
0.8 0.9 0.85
0.02 0.01 0.03
4
Output
3 2

Sample 2

Input
5
1
0
Output
1 0
solution.py
Output appears here
Error Bars · Python practice problem · LearnPy Hub