Lakshay
Lakshay
PROJECT FILE
AI PROJECT CYCLE
SESSION: 2024 - 2025
Program:
Output:
3. 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.
Program:
Output:
4. Find area of circumference of a circle. [Hint: Area = 𝜋𝑟2, circumference = 2𝜋𝑟]
Program:
Output:
5. Write a program to input a number and display whether it is odd or even.
Program:
Output:
6. Using Numpy Package:
Create a 4 X 2 array with random integer.
Create 3 X 3 array with all zeros.
Program:
Output:
7. Using Matplotlib and the given data, plot a line chart.
Program:
Output:
400
350
300
250
200
150
100
50
0
2018 2019 2020 2021 2022
8. Using Matplotlib and the given data, plot a line chart.
Programme
Output
9. 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]
Program:
Output:
60
50
40
30
20
10
0
2.5 3 3.5 4 4.5 5 5.5
10. Using Numpy package: Create an array of 5 marks and display the average of all
marks.
Program:
Output:
11. Create a list of distance travelled by a car in a week and calculate mean, median and
mode using statistics module.
Program:
Output:
12. Create a list of number of voting done in 6 areas and calculate standard deviation and
variance using statistics module.
Program:
Output:
13. Using the library: import cv2, matplotlib. Upload an image of your favourite city in the world
on the screen and give a proper title to it.
Programme
Output
14. Using the library: import cv2, matplotlib. Upload an image of your favorite
food and display the picture in RGB color mode.
Programme
Output
15. Using the library: import cv2, matplotlib. Upload an image of your favourite pet and
display the picture in grayscale mode.
Programme
Output