from statistics import correlation
practice = [30, 45, 60, 60, 75, 90, 100, 120, 135, 150, 165, 180]
made = [6, 8, 9, 11, 10, 12, 14, 13, 15, 17, 16, 18]
r = correlation(practice, made)
print(round(r, 2))
# Output: 0.97
A short Python program that calculates r for the free-throw data. It prints 0.97.