Write correlation(x, y) returning the Pearson correlation of two lists rounded to 3 (use np.corrcoef).
correlation([1, 2, 3], [2, 4, 6]) → 1
correlation([1, 2, 3], [3, 2, 1]) → -1
Submit runs 3 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.