JUBILEE HILLS PUBLIC SCHOOL,HYDERABAD.
SESSION – 2023-24
CLASS 10 SUBJECT: AI (417)
PYTHON PRACTICAL PROGRAMS
PRINT
1) To print personal information like Name, Father’s Name, Class, School Name.
2) To print the following patterns using multiple print commands-
3) To convert length given in kilometers into meters.
4) To print the table of 5 up to five terms.
5) To calculate Simple Interest if the
principle_amount = 2000 rate_of_interest =4.5 time = 10
INPUT
6) To calculate Area and Perimeter of a rectangle
7) To calculate Area of a triangle with Base and Height
8) To calculating average marks of 5 subjects
LIST
9) Create a list in Python of children selected for science quiz with following names-
Arjun, Sonakshi, Vikram, Sandhya, Sonal, Isha, Kartik
10) Perform the following tasks on the list in sequence-
(i) Print the whole list
(ii) Delete the name “Vikram” from the list
(iii) Add the name “Jay” at the end
(iv) Remove the item which is at the second position.
(v) Create a list num=[23,12,5,9,65,44]
(vi) Print the length of the list
(vii) Print the elements from second to fourth position using positive indexing
(viii) Print the elements from position third to fifth using negative indexing
11) Create a list of first 10 even numbers, add 1 to each list item and print the final
list.
12) Create a list List_1=[10,20,30,40]. Add the elements [14,15,12] using extend
function. Now sort the final list in ascending order and print it.
IF, FOR, WHILE
13) Program to check if a person can vote
14) Input a number and check if the number is positive, negative or zero and display
an appropriate message
15) To print first 10 natural numbers, even numbers and odd numbers.
16) Program to find the sum of all numbers stored in a list
17) Write a program to add the elements of the two lists.
18) Write a program to calculate mean, median and mode using Numpy
19) Write a program to display line chart from (2,5) to (9,10).
20) Write a program to display a scatter chart for the following points (2,5),
(9,10),(8,3),(5,7),(6,18).