# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% from matplotlib import pyplot as plt import numpy as np # %% file = open("values.txt","r") # %% f = file.readline() print(f) niter = int(f) g = [0]*niter for i in range (0, niter): g[i]= file.readline() g[i]=float(g[i]) file.close() print(g) # %% p= np.arange(1,niter+1) print(p) # %% plt.plot(p,g,'r-') # %%