Beruflich Dokumente
Kultur Dokumente
COMPUTER
SCIENCE
(PYTHON)
NAME : GARV SHARMA
CLASS : 12 – B
ROLL NO : 26
SCHOOL : KENDRIYA VIDYALAYA
1
No. Name of Practical Page
No.
WAP to compute x n of given two integers x
1. and n.
4
WAP for calculating simple interest.
2. 4
WAP to accept a number from the user and
3. display whether it is an even number or odd
4
number.
WAP to accept percentage of a student and
4. display its grade accordingly
4
WAP to print Fibonacci series up to certain limit.
5. 4-5
WAP to display prime numbers up to a certain limit.
6. 5
WAP to accept a number, find and display whether
7. it’s a Armstrong number or not.
5
WAP to accept a number and find out whether
8. it is a perfect number or not.
5
WAP to print the sum of the series
9. 1+x1/1!+x2/2!+…….xn/(n)!- exponential series.
5-6
WAP to print the following pattern:
10. 1
6
12
123
WAP to accept a string and display whether it
11. is a palindrome.
6
WAP that counts the number of alphabets and
12. digits, uppercase letters, lowercase letter,
6-7
spaces and other characters in the string
entered.
WAP to accept a string ( a sentence) and
13. returns a string having first letter of each word
7
in capital letter.
WAP to remove all odd numbers from the given
14. list.
7
15. WAP to display second largest element of a given 7
list.
2
16. WAP to display cumulative elements of a given 7
list.
17. WAP to display frequencies of all the elements of 7-8
a list.
18. WAP in Python to display those strings which are 8
string with ‘A’ of given list.
WAP in Python to find and display the sum of
19. all the values which are ending with 3 from a
8
list.
20. WAP to shift the negative number to left and 8
the positive numbers to right.
21. WAP to swap the content with next value 8-9
divisible by 7.
22. WAP to accept values from user and create a 9
tuple.
23. Write a program to input total number of 9
sections and stream name in 12th class and
display all information on the output screen.
24. Write a Python program to input names of ‘n’ 9-10
countries and their capital and currency, store it
in a dictionary and display in tabular form. Also
search and display for a particular country.
25. 25 SQL Queries. 11-19
3
4
5
6
7
8
9
10
******MYSQL QUERIES******
1. Command for creating the database
11
4. Command for showing the structure of table.
12
7. Command to view the contents of the table.
13
10. Command for using WHERE clause.
14
13. Command for using ALTER (to modify structure of table).
15
17. Command for using HAVING clause.
16
20. Command for equi-join of tables.
17
23. Command for using group by and order by in equi-join.
18
26. Command to delete a column.
19