Search for question
Question

Task 2 Draw three curves with Matplotlib (1 point) Assume that we define two curves and one straight line by the following data: (a) A straight line: x= [0, 1, 2,

3, 4, 5], y = [0, 1, 2, 3, 4, 5] (b) Curve 1: x= [0, 1, 2, 3, 4, 5], y = x**2 (** represents an element-wise power operation) (c) Curve 2: x= [0, 1, 2, 3, 4, 5], y=x**3 The straight line is represented by a red dashed line, and the two curves are signified by blue circles and green triangles, respectively.

Fig: 1