0% found this document useful (0 votes)
274 views15 pages

Class X - Practical Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
274 views15 pages

Class X - Practical Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

PRACTICAL PROGRAMS

1. Write a Python program to create a list and add elements to it.

OUTPUT :

2. Write a Python program to add the elements of the given two lists.

OUTPUT :
3. Write a Python program to implement a simple calculator program.

OUTPUT :
4. Write a Python program to find sum of even and sum of odd numbers
separately from the given list.

OUTPUT :
DATA SCIENCE

5. Write a Python program to perform basic statistical operations in


Python.

OUTPUT :
6. Write a program to draw line plot using matplotlib library

OUTPUT :
7. Write a program to draw bar chart using matplotlib library

OUTPUT :
8. Write a program to drawpie chart using matplotlib library

OUTPUT :
9. Write a program to drawscatterplot using matplotlib library

OUTPUT :
10. Write a program to drawhistogram chartusing matplotlib library

OUTPUT :
11. Write a program to read a csv file saved in your system and display
its information using Python.

SOURCE CODE :

OUTPUT :
COMPUTER VISION(OpenCV)

Note : First, run the command ‘pip install opencv-python’ to install


OpenCV, then write your program to execute computer vision tasks.

12. Write a Python program to read and display an image using the
OpenCV library.

SOURCE CODE :

OUTPUT :
13. Write a Python program that reads an image and displays it in its
original RGB color format instead of the default BGR format.

SOURCE CODE :

OUTPUT :
14. Write a Python program using OpenCV to convert an image to
grayscale and display it.

SOURCE CODE :

OUTPUT :
15. Write a Python program to crop an image using OpenCV library.

SOURCE CODE :

OUTPUT :
16. Write a Python program to resize an image using OpenCV library.

SOURCE CODE :

OUTPUT :

You might also like