web - how do I put my python into my website -
how put code:
import matplotlib.pyplot plt def fib(nooftimes): repeat=nooftimes a=1 print(a) b=1 print(b) r="ratio between" print(r,a/b) odd=[1] even=[] dtg=[1] fack=1 counter1=1 counter2=0 counter3=0 while nooftimes>0: c=a+b print(c) e=c/b counter1=counter1+1 if(counter1%2==0): even.append(e) if(counter1%2==1): odd.append(e) dtg.append(e) print(r,e) a=b+c f=a/c counter1=counter1+1 if(counter1%2==0): even.append(f) if(counter1%2==1): odd.append(f) dtg.append(f) print(a) print(r,f) b=c+a g=b/a counter1=counter1+1 if(counter1%2==0): even.append(e) if(counter1%2==1): odd.append(e) dtg.append(g) print(b) print(r,g) nooftimes=nooftimes-1 else: plt.plot(dtg) plt.plot(even) plt.plot(odd) plt.ylabel('stuff') plt.show() fib(5)
into website?
do have use sort of api or it?
Comments
Post a Comment