Name : Saksham jain
Class : X- B
Subject : AI
Practical File
Write a program to add the elements of the two lists.
Write a program to calculate mean, median and mode.
Write a python code to take the input of a number n and
then display its factorial (n!).
Write a program to display line chart from (2,5) to (9,10).
Write a program to display a scatter chart for the
following points (2,5), (9,10), (8,3), (5,7), (6,18)
Write a program to input a string and display the
string in the reverse order.
Write a program to input a string and display the count of
vowels and consonants in the string.
Write a Python code to input the lengths of the three sides of a
triangle and display whether a triangle can be formed then
display whether the triangle will be scalene, isosceles or
equilateral triangle.
Write a program to input two numbers and display the
LCM of the two numbers.
Write a program to input and display whether it is a
palindrome or not.
Write a program to input a number and display whether it
is a prime number or not.
Write a program to input two numbers and swap both the
numbers without using the third number.
Using Numpy Package:
• Create a 4*2 array with random integer.
• Create 3*3 array with all zeros.
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’]
Using Matplotlib and the given data, plot a line chart:
x_axis = [3,4,6,2,8]
y_axis = [9,10,8,7,6]
Using Matplotlib and the given data, plot a pie chart:
Data = [45,23,41,78,65]