How would you write a function to interpolate a list of numbers?
Implement interpolate(numbers, count), which returns exactly count evenly positioned values across the original list using piecewise linear interpolation. Preserve the first and last values, support both upsampling and downsampling, and return numeric values in order.
numbers is a list of at least two integers or floats. count is an integer at least 2. Return a list of count floats.
def interpolate(numbers, count):