Professional Documents
Culture Documents
Python Practical Questions
Python Practical Questions
Question 1: Create a NumPy array with the following values: [11, 23, 34, 46, 51]. Calculate
Question 2: Generate a 2x2 matrix using Scipy with random values. Calculate the
Charlie 22 Chicago
Question 4: Plot a simple line graph using Matplotlib. Use the following data:
y = [2, 4, 6, 8, 10]
Question 5: Create a NumPy array with random integers between 1 and 100.
Question 6: Plot a bar chart using Matplotlib with the following data:
Question 7: Create an interactive line plot using Matplotlib in a Jupyter Notebook. Use the
following data:
x = [1, 2, 3, 4, 5]
Question 8: Use Matplotlib to create a pie chart with the following data: