Professional Documents
Culture Documents
M-2 Test-2 Python Programs
M-2 Test-2 Python Programs
3) Requests for HTTP Requests: Program to Describe the functionality of the provided
Python script, focusing on its interaction with an external API using the requests module.
4.Write a Python program that visualizes data using the Matplotlib package. Describe the
purpose of the Matplotlib package and how it is used to create a simple line plot from given
data points.
5. Write a Python program that performs sentiment analysis using the NLTK (Natural
Language Toolkit) package. Describe the purpose of the NLTK package and how it is utilized
to analyze the sentiment of a given sentence.
6. Develop a Python program that analyzes data from a CSV file using the Pandas package.
Explain how the program reads the CSV file into a DataFrame and computes summary
statistics using Pandas functions.
ii)Write a Python program for element wise operations add, sub, div and mul on matrixes.
9)Write a Python program to draw a line with suitable label in the x axis, y axis and a title.
10) Write a Python program to plot two or more lines on same plot with suitable legends of
each line.