The following should get you going. Rather than using readlines() to read the whole file, a better approach would be to convert each row as it is read in.
As your two data files have a different number of elements, the code makes use of zip_longest to fill in any missing death data with 0.0:
from itertools import zip_longest
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
with open('deaths.txt') as f_deaths:
deaths = [float(row) for row in f_deaths]
with open('years.txt') as f_years:
years = [int(row) for row in f_years]
# Add these to deal with missing data in your files, (see Q before edit)
years_deaths = list(zip_longest(years, deaths, fillvalue=0.0))
years = [y for y, d in years_deaths]
deaths = [d for y, d in years_deaths]
print(deaths)
print(years)
plt.xlabel('Year')
plt.ylabel('Deaths')
ax = plt.gca()
ax.xaxis.set_major_formatter(ticker.FormatStrFormatter('%d'))
ax.set_xticks(years)
plt.plot(years, deaths)
plt.show()
This will display the following on the screen, showing that the conversions to ints and floats were correct:
[29.0, 122.0, 453.0, 0.0]
[1995, 1996, 1997, 1998]
And the following graph will then be displayed:

mapdeaths_int= map(int,deaths). And plot deaths_int array.