Write a Python program to demonstrate the use of the Matplotlib library.
1 Like
import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [2, 4, 6, 8, 10] plt.plot(x, y) plt.xlabel('x') plt.ylabel('y') plt.title('Line Plot') plt.show()
Output
Answered By
Write a Python program to demonstrate the use of the SciPy library.
Write a Python program to demonstrate the use of the Pandas library.
How do modules help in code reusability? Explain with the help of an example.
Create a Python package and one module under it. Write Python code to use this package.