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.
Run your code to see the output here.