Computer Science Practical File
Computer Science Practical File
SCIENCE
PRACTICAL FILE
S.NO PROGRAM
.
1. Calculate area of triangle.
2. Take entries into a dictionary.
3. Count vowels in a string.
4. Remove odd numbers from list.
5. Remove elements that end with 3.
6. Check if string is palindrome.
7. Produce a Fibonacci range.
8. Calculate factorial.
9. Check if number is Armstrong.
10. Create a basic calculator.
11. Print a pattern of any symbol.
12. Calculate percentage of marks.
13. Check whether number is odd or
even.
14. Calculate simple interest.
15. Calculate x^n of given numbers.
16. Calculate sum of all elements in list.
17. Check if input number is prime.
18. Program of global and local variables.
S.NO PROGRAM
.
Output:
Q2. Program to take entries into a dictionary of
countries and capitals and search:
Output:
Output:
Q9. Program to check whether a given number is
an armstrong number:
Output:
Q10. Program to create a calculator:
Output:
Q11. Program to print a pattern of any symbol:
Output:
Q12. Program to calculate the percentage of
marks:
Output:
Q13. Program to check whether a number is odd
or even:
Output:
Q14. Program to calculate the simple interest:
Output:
Q15. Program to calculate the x^n of any two
given numbers:
Output:
Q16. Program to calculate the sum of all elements
in a list:
Output:
Q17. Program to find out whether a number is
prime or not:
Output:
Q18. Program of global and local variables:
Output:
Output:
Q22. Program to remove lines containing a and
write into a new file:
Output:
Q23. Program to count vowels, consonants,
uppercase and lowercase characters:
Output:
Q24. Program to separate words by # in a text
file:
Output:
Output:
Q27. Program to make a csv file with username
and password and retrieve data by username:
Output:
Q28. Program to implement a stack:
Output:
Q29. Program to implement a stack for employee
details:
Output:
Q30. Program to implement mysql connectivity in
python:
Output:
1.
2.
3.
4.
5.
6.
QUERIES SET 2
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
QUERIES SET 3
a)Display Match Id, Team ID, Team score who scored more than
70 in first inning, along with the team name.