0% found this document useful (0 votes)
54 views2 pages

Programming in Python

The document provides a list of practicals to be completed for Class XII Computer Science. It includes 18 Python programming practicals covering topics like dictionaries, functions, files, recursion, GUI programming and plotting. It also lists 5 SQL and web development practicals involving creating tables, queries, grouping, Django and integrating SQL with Python. The final practical involves analyzing phishing emails.

Uploaded by

Akash Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views2 pages

Programming in Python

The document provides a list of practicals to be completed for Class XII Computer Science. It includes 18 Python programming practicals covering topics like dictionaries, functions, files, recursion, GUI programming and plotting. It also lists 5 SQL and web development practicals involving creating tables, queries, grouping, Django and integrating SQL with Python. The final practical involves analyzing phishing emails.

Uploaded by

Akash Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

LIST OF PRACTICALS FOR CLASS-XII (CS)

Programming in Python:
1 Create a dictionary containing names of competition winner students as keys and
number of their wins as values.
2 Write a program that receives two numbers in a function and returns the results of all
arithmetic operations on these numbers.
APRIL

3 Write a function to swap the values of two variables through a function.

4 Write a random number generator using functions that generates random numbers
between 1 and 6 (simulates a dice).
5 Open a webpage using the urllib library.

6 Read a file line by line and print it.


MAY/JUNE

7 To display the number of lines in the file and size of a file in bytes.

8 Remove all the lines that contain the character `a' in a file and write it to another file.

9 To get rnos ,names and marks of the students of a class and store these details in a file
called "Marks.dat".
10 Recursively find the factorial of a natural number.

11 Write a recursive code to find the sum of all elements of a list.


JULY

12 Write a recursive code to compute the nth Fibonacci number.

13 Write a recursive Python program to test if a string is a palindrome or not.

14 Create a graphical application that accepts user inputs, performs some operation on
them, and then writes the output on the screen. e.g. a small calculator. (use tkinter
library)
AUGUST

15 Write a Python program to plot the function y = x2 using the pyplot or matplotlib libraries.

16 Compute EMIs for a loan using the numpy or scipy libraries.

17 Write a Python function sin(x, n) to calculate the value of sin(x) using its Taylor series
expansion up to n terms. Compare the values of sin(x) for different values of n with the
correct value.
SEPTEMBER

18 Write a Python program to implement a stack using a list data-structure.

19 Write a Python program to implement a queue using a list data-structure.


Data Management: SQL and Web-Server (Django)
20 Create a table student with 10 dummy records and find the min, max, sum, and average
of the marks from this table.
21 Write a SQL query to order the (student ID, marks) table in descending order of the
OCTOBER

marks.
22 Find the total number of customers from each country in the table (customer ID,
customer name, country) using group by.
23 Write a Django based web server to parse a user request (POST), and write it to a CSV
file.
24 Integrate SQL with Python by importing the MySQL module
NOV

25 Take a sample of 10 phishing e-mails and find the most common words.

PROJECT WORK

You might also like