Practical File
Practical File
Practical File
Computer Science
(Python)
Index
No. Name of Practical Date Page Sign of
no. the
Teacher
1. WAP to compute x n of given two integers x
and n.
2. WAP for calculating simple interest.
3. WAP to accept a number from the user and
display whether it is an even number or odd
number.
4. WAP to accept percentage of a student and
display its grade accordingly.
5. WAP to print Fibonacci series up to certain
limit.
6. WAP to display prime numbers up to a certain
limit.
7.WAP to accept a number, find and display whether
it’s a Armstrong number or not.
8. WAP to accept a number and find out whether
it is a perfect number or not.
9. WAP to print the sum of the series
1+x1/1!+x2/2!+…….xn/(n)!- exponential series.
10. WAP to print the following pattern:
1
12
123
11 WAP to accept a string and display whether it
is a palindrome.
12. WAP that counts the number of alphabets and
digits, uppercase letters, lowercase letter,
spaces and other characters in the string
entered.
13. WAP to accept a string ( a sentence) and
returns a string having first letter of each word
in capital letter.
14. WAP to remove all odd numbers from the given
list.
15. WAP to display second largest element of a given
list.
Code:
Program 3: WAP to accept a number from the user and display whether
it is an even number or odd number.
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Program 14 -WAP to remove all odd numbers from the given list.
Code:
Code:
Code:
Code:
Code:
Program 19 - WAP in Python to find and display the sum of all the
values which are ending with 3 from a list.
Code:
Program 20 - WAP to shift the negative number to left and the positive
numbers to right so that the resultant list will look like.
Original list [-12, 11, -13, -5, 6, -7, 5, -3, -6]
Output should be [11, 6, 5, -6, -3, -7, -5, -13, -12]
Code:
Code:
Program 23- Write a program to input total number of sections and stream name
in 11th class and display all information on the output screen.
Code:
Program 24- Write a Python program to input names of ‘n’ countries and their
capital and currency, store it in a dictionary and display in tabular form. Also search
and display for a particular country.
Code:
19. Command for using group by and having clause with where clause.