The document outlines a practical list for an Artificial Intelligence course for the 2024-25 session, focusing on advanced Python, data science, and computer vision. It includes various programming tasks such as reversing strings, calculating power consumption charges, and creating visualizations using libraries like NumPy and OpenCV. Each task is designed to enhance students' coding skills and understanding of data manipulation and visualization techniques.
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 ratings0% found this document useful (0 votes)
5 views4 pages
XSLX
The document outlines a practical list for an Artificial Intelligence course for the 2024-25 session, focusing on advanced Python, data science, and computer vision. It includes various programming tasks such as reversing strings, calculating power consumption charges, and creating visualizations using libraries like NumPy and OpenCV. Each task is designed to enhance students' coding skills and understanding of data manipulation and visualization techniques.
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/ 4
SESSION: 2024-25
ARTIFICIAL INTELLIGENCE (417) PRACTICAL LIST
SL. PAGE TEACHERS No. Program NO. SIGNATURE Unit 3: Advance Python 1. Write a program to print your favorite subject name in reverse order. 2. Write a program to input three numbers and swap them as this: 1st number becomes the 2nd number, 2nd number becomes the 3rd number and the 3rd number becomes the 1st number. 3. An electric power distribution company charges its domestic consumers as follows : Units Rate of Charge 0-100 Rs. 1 per unit 101-300 Rs. 100 plus Rs. 1.25 per unit in excess of 100 301-500 Rs. 350 plus Rs. 1.50 per unit in excess of 300 500 and above Rs. 650 plus Rs. 1.75 per unit in excess of 500 Write a program that read the customer number & power consumed and prints the amount to be paid by the customer. Note that output should be well formatted. 4. Write a Python code to take input of a number n and then find its factorial (n!) 5. 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. 6. Write a program to input a number and display whether it is a palindrome number 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 print the highest of three numbers. 9. Write a program convert temperature from Fahrenheit to Celsius and Celsius to Fahrenheit on user choice and using formulas Unit 4: Data Science programs 10. Write a program to create a 2D array using NumPy. 11. Write a program to convert a python list to a NumPy array. 12. Write a program to create matrix of 3x3 from 11 to 30. 13. Write a program to represent the data on the ratings of mobile games on bar chart. The sample data is given as:
Games:Pubg, FreeFire, MineCraft, GTA-V, Callofduty, FIFA 22.
Rating: 4.5,4.8,4.7,4.6,4.1,4.3. 14. Write a program to calculate variance and standard deviation for the given data: [33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87] 15. Write a menu-driven program to calculate the mean, mode and median for the given data: [5,6,1,3,4,5,6,2,7,8,6,5,4,6,5,1,2,3,4] 16. Consider the following data of a clothes store and plot the data on the line chart and customize the chart as you wish: Month Jeans T-Shirts Shirts March 1500 4400 6500 April 3500 4500 5000 May 6500 5500 5800 June 6700 6000 6300 July 6000 5600 6200 August 6800 6300 4500 Observe the given data for monthly sales of one of the salesmen 17. for 6 months. Plot them on the line chart.
Month January February March April May June
Sales 2500 2100 1700 3500 3000 3800
Apply the following customizations to the chart:
• Give the title for the chart - "Sales Stats" • Use the "Month" label for X-Axis and "Sales" for Y-Axis. • Display legends. • Use dashed lines with the width 5 point. • Use red color for the line. Use dot marker with blue edge color and black fill color. Unit 5: Computer vision
18. Using the library :import cv2, matpoltlib
Upload an image of your favorite pet and display the picture in
gray scale mode.
19. Using the library :import cv2, matpoltlib
Upload an image of your favorite food and display the picture in
RGB color mode.
20. Using the library :import cv2, matpoltlib
Upload an image of your favorite person and put a black box on