##euler
def Euler (F,a,b,y0,h):
    y=y0
    n=int((b-a)/h+1)
    t=a
    for i in range (n):
        t=a+h*i
        y=h*F(t,y)+y
    return y

for h in [1/2,1/10,1/100,1/1000,10**(-6)]:
    print(Euler(  # ??? à compléter ))
    
#on peut aussi définr F comme suit :
F=lambda t,y:y
    
##tracer
import matplotlib.pyplot as pl
import numpy as np
pl.interactive(True)
 
y0=1
a,b= 0,10
h=1/10
T=np.linspace (a,b,int((b-a)/h+1)) 
 
Y=# ??? à compléter

 
pl.plot (# ??? à compléter)
pl.show ()
