Fast Fourier Transform showing the same results but with different files?
I'm not familiar with this type of code, but I can take a guess at what you want to do. Your variable names are inappropriate. I suggest you change  your code to something like the following (comments are inside brackets):

spectrum = fft(data)   [Assumes you've transformed a data sequence whose length is 'N' samples.]

fs = input("What's the 'data' sampling rate (in Hz): ")

delta_freq = fs/N   ['delta_freq' is the frequency spacing (measured in Hz) 
between the spectral samples contained in the 'spectrum' sequence]

freq_axis = np.linspace(0, delta_freq, (N-1)*delta_freq)

plt.plot(freq_axis[:N//2], np.abs(spectrum)[:N//2]*(1/N))  [Plots the normalized (i.e., the 1/N scaling) spectral magnitude over the positive-frequency range]