import numpy as np def FFT(inp): inp = np.array(inp) out = np.fft.fft(inp) out = [val for val in np.abs(out)] print(out) return out