INDEX
S. No.                  Name of Practical                           Teacher’s
                                                                      sign
 1.      Write a program in python to check a number whether
         it is prime or not.
 2.      Write a program to check a number whether it is
         palindrome or not
 3.      Write a program to calculate compound interest.
 4.      Write a program to display ASCII code of a character
         and vice versa.
 5.      Write a program to input a character and to print
         whether a given character is an alphabet, digit or any
         other character.
 6.      Write a program to calculate the factorial of an integer
         using recursion
 7.      Write a program to print fibonacci series using
         recursion
 8.      Write a program for binary search.
 9.      Write a recursive python program to test if a string is
         palindrome or not.
 10.     Write a program to count the number of vowels
         present in a text file.
 11.     Write a program to write those lines which have the
         character 'p' from one text file to another text file.
 12.     Write a program to count number of words in a file.
 13.     Write a python function sin(x,n) to calculate the value
         of sin(x) using its taylor series expansion up to n
         terms.
14.   Write a program to generate random numbers between
      1 to 6 and check whether a user won a lottery or not.
15.   Write a program to create a library in python and
      import it in a program.
16.   Write a program to plot a bar chart in python to display
      the result of a school for five consecutive years.
17.   Write a program in python to plot a graph for the
      function y=x^2
18.   Write a program in python to plot a graph for the
      function y = x2.
19.   Write a program for linear search.
20.   Write a program for bubble sort.
21.   Write a menu-based program to perform the operation
      on stack in python
22.   Write a menu based program to perform the operation
      on queue in python
23.   Write a menu-based program for circular queue.
24.   Create a graphical calculator using tkinter library.
25.   Write a program to open using urlib library.
26.   Write a program to calculate EMI for a loan using
      numpy.
27.   Write a program to find the most common words in a
      file
28.   Write a program to perform read and write operations
      with .csv file
29.   Write Django based web application and write data to
      a csv file.
30.   Queries using DISTINCT, BETWEEN, IN, LIKE, IS
      NULL, ORDER BY, GROUP BY, HAVING
31.   Queries for Aggregate functions- SUM ( ), AVG( ),
      MIN( ), MAX( ), COUNT( )
32.   write a program to connect Python with MySQL using
      database connectivity and perform the following
      operations on data in database: Fetch, Update and
      delete
      the data.
                   CONTENTS
1.   Certificate
2.   Acknowledgement
3.   Introduction
4.   Introduction to Python
5.   Coding
6.   Output in Python
7.   Bibliography
                                      CLASS-XII
                    Sub: COMPUTER SCIENCE (083)
                                     Practical File
Practical No.: 01
Objective: Write a program in python to check a number whether it is prime or not
Program:
       num=int(input("Enter the number: "))
       for i in range(2,num):
               if num%i==0:
               print(num, "is not prime number")
               break;
       else:
               print(num,"is prime number")
Output: