0% found this document useful (0 votes)
2 views23 pages

Python

The document is a Python practical file for students at Mayo International School, detailing various programming exercises. It includes tasks such as finding the largest of three numbers, calculating factorials, reversing strings, and using libraries like Numpy and Matplotlib for data manipulation and visualization. The practical file is intended for submission by a student named Riddhima Manral to Ms. Rakhi.

Uploaded by

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

Python

The document is a Python practical file for students at Mayo International School, detailing various programming exercises. It includes tasks such as finding the largest of three numbers, calculating factorials, reversing strings, and using libraries like Numpy and Matplotlib for data manipulation and visualization. The practical file is intended for submission by a student named Riddhima Manral to Ms. Rakhi.

Uploaded by

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

s

PYTHON PRACTICLE FILE

MAYO INTERNATIONAL
11/17/2025
SCHOOL
Submitted To-
Submitted By-
Ms. Rakhi
Riddhima Manral
Class –
X-A
PYTHON PRACTICAL FILE

[Link] a program to find the largest of the three


numbers.

INPUT
PYTHON PRACTICLE FILE

[Link] a python code to take input of a number n and


then find and display its factorial(n!).
OUTPUT

INPUT
PYTHON PRACTICAL FILE

[Link] a program to input a string and display the


string in the reverse order.
OUTPUT

INPUT
PYTHON PRACTICAL FILE

[Link] a program to input a string and display the


count of vowels and consonants in the string.
OUTPUT

INPUT
PYTHON PRACTICLE FILE

[Link] 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.
OUTPUT

INPUT
PYTHON PRACTICLE FILE

[Link] a program to input a number and display


whether it is a palindrome or not.
OUTPUT

INPUT
PYTHON PRACTICAL FILE.

[Link] a program to input two numbers and swap both


the numbers without using the third number.
OUTPUT

INPUT
PYTHON PRACTICAL FILE

[Link] Numpy Package:


 Create a 4 x 2 array with random integer
 Create 3 x 3 array with all zeros
OUTPUT

INPUT
PYTHON PRACTICAL FILE

9. Write a program to add the elements of the two


lists.
OUTPUT

INPUT
PYTHON PRACTICLE FILE

10. Write a program to calculate mean, median and


mode using Numpy of the following list of distance
travelled by a car in a week :
[95,90,49,71,90,100,55].
OUTPUT

INPUT
PYTHON PRACTICLE FILE

11. 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’]
OUTPUT

INPUT
PYTHON PRACTICLE FILE

12. Using Matplotlib and the given data, plot a line


chart
X axis=[3,4,6,2,8]
Y axis=[9,10,8,7,6]
OUTPUT
INPUT

PYTHON PRACTICLE FILE

14. 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]
OUTPUT
INPUT
PYTHON PRACTICAL FILE

15. Using Numpy package: Create an array of 5 marks


and display the average of all marks.
OUTPUT

INPUT
PYTHON PRACTICLE FILE

16 . Write a program to read an image and display using


Python library: import cv2, matplotlib. Upload an image
of your favourite city in the world on the screen and give
proper title to it.
OUTPUT

INPUT
PYTHON PRACTICLE FILE

17. Using the library: import cv2, matplotlib. Upload an


image of your favourite food and display the picture in
RGB colour mode.
OUTPUT

INPUT
PYTHON PRATICAL FILE

18. Using the library: import cv2, matplotlib. Upload an


image of your favourite pet and display the picture in
grayscale mode.
OUTPUT
INPUT

You might also like