19.WRITE A PROGRAM TO PLOT FIBONACCI TERMS AND THEIR SQUARE ROOT WITH TWO SEPARATE LINE. (WITH DIFFERENT TYPES OF MARKERS)

Solution :- 

import matplotlib.pyplot as plt
import numpy as np
fib=[0,1,1,2,3,5,8,13,21,34]
sqfib=np.sqrt(fib)
plt.plot(range(1,11),fib,linestyle=”solid”)
plt.plot(range(1,11),sqfib,linestyle=”dashed”)
plt.show()

Output :-