0% found this document useful (0 votes)
28 views

Practical Question Class 10 Advance Python

Uploaded by

avnidtu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Practical Question Class 10 Advance Python

Uploaded by

avnidtu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Program File- Practical Questions

1. Write a program to input a string and display the count of vowels and consonants in
the string.
2. Write a program to input a string and display the string in the reverse order.
3. Write a python code to take the input of a number n and then find and display its
factorial.
4. Write a python code to input the lengths of the three sides of a triangle and display
whether a triangle can be formed with the inputs or not. If a triangle can be formed
then display whether the triangle will be scalene , isosceles or equilateral triangle.
5. Write a program to input two numbers and display the LCM of two numbers.
6. Write a program to input a number and display whether it is a palindrome or not.
7. Write a program to input a number and display whether it is a prime number or not.
8. Write a program to input two numbers and swap both the numbers without using the
third number.
9. Write a python code to input radius and calculate the area and circumference of a
circle.
10. Write a python code to find the average of three numbers.
11. Write a python code to print the highest of three numbers entered.
12. Write a python code to print the even numbers between 21-50.
13. Write a python code to input age and check whether eligible for driving or not.
14. Write a python code to input 5 numbers and print its sum.
15. Write a python code to accept shape and accept length, breadth or side or radius
depending on shape , calculate perimeter and area.
16. Using Numpy package:
Create a 4x2 array with random integer
Create a 3x3 array with all zeroes
17.Using Matplotlib and the given data , plot a bar chart:
No. of people voted=[23,45,31,40,35]
Area covered=[‘a1’, ‘a2’,’a3’,’a4’,’a5’]
18. Using Matplotlib and the given data , plot a line chart:
X_axis=[3,4,6,2,8]
Y_axis=[9,10,8,7,6]

19. Using Matplotlib and the given data , plot a pie chart:
Data=[45,23,41,78,65]
20. Using Matplotlib and the given data, plot a scatter chart:
Height=[4.5,5.2,4.1,3.5,5]
Weight=[34,41,45,56,39]
21. Using Numpy package: Create an array of 5 marks and display the average of all
marks.
22. Create a list of distance travelled by a car in a week and calculate using Statistics
module.
Mean , Median , Mode
23. Create a list of voting done in 6 areas and calculate using statistics module.
24. Using the library : import cv2, Matplotlib
Upload an image of your favorite city in the world on the screen and give a proper title
to it.
25. Using the library: import cv2, Matplotlib
Upload an image of your favorite food on the screen and display the picture in RGB
color mode.
26. Using the library: import cv2, Matplotlib
Upload an image of your favorite pet on the screen and display the picture in Grayscale
mode.
27.. Using the library: import cv2, Matplotlib
Upload your own picture in your favorite dress and put a black box on the face and the
hands.
28.. Using the library: import cv2, Matplotlib
Upload an image of a banana tree and change the color of the tree in the image and
save it in your drive.
29. Using the library: import cv2, Matplotlib
Upload an image of an animal and crop the face of the animal.
Student Portfolio (Activity)
1. Pick your favorite AI domain for research.
Explore the Internet and other mediums and find out more information on that domain. Open
MS Word and type at least ten features of the domain that distinguish it from the other two
domains.
In addition, make a list of the applications related to the domain that are used in our real lives.

2. Collect the data of your friends in your locality for making a dataset of their information like
Name, Phone, school Name, Zodiac sign etc. Fill in the information in csv file of 20 friends and
try using it to make the following charts using Matplotlib.
a)Scatter
b)pie

You might also like