Label the Peak
Draw ys against xs as a line, and write the text "peak" at the highest point of the line. Return the figure.
Checked: the lines and the texts and where they sit.
Example 1
xs [1,2,3,4]
ys [2,9,3,7]
draws

Constraints
2 <= len(xs) == len(ys) <= 30- One y is larger than all the others
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More matplotlib problems
- Mark the AverageEasy
- Names on the AxisEasy
- Side by SideEasy
- Zoom InEasy
- Bars in PairsMedium
- Bars on Top of BarsMedium
- Boxes for GroupsMedium
- Grid of FourMedium