Write trend(values) fitting a straight line to values against x = 0, 1, 2, … with np.polyfit, returning [slope, intercept] rounded to 2.
trend([1, 3, 5, 7]) → [2, 1]
trend([5, 5, 5]) → [0, 5]
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.