0% found this document useful (0 votes)
128 views

Govt. Boys Sr. Sec. School Baprola: School Code: 1617258 Computer Science

This document contains a student project on computer science. It includes 7 tasks on Python programming and SQL queries: 1) Implementing a stack using a list, 2) Creating and inserting data into a student table, 3) Altering the student table, 4) Updating data in the student table, 5) Ordering the student data, 6) Deleting data from the student table, and 7) Integrating SQL with Python. For each task, the source code and output are documented.

Uploaded by

Nikhil Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views

Govt. Boys Sr. Sec. School Baprola: School Code: 1617258 Computer Science

This document contains a student project on computer science. It includes 7 tasks on Python programming and SQL queries: 1) Implementing a stack using a list, 2) Creating and inserting data into a student table, 3) Altering the student table, 4) Updating data in the student table, 5) Ordering the student data, 6) Deleting data from the student table, and 7) Integrating SQL with Python. For each task, the source code and output are documented.

Uploaded by

Nikhil Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Govt. Boys Sr. Sec.

School
Baprola
School Code: 1617258

Computer Science

Submit to:- Submit by:-


Sumit Kumar Nager NAME – Nikhil Rai
LECTURER COMPUTER CLASS – 12th A
SCI.
ROLL NO. – 30
ID – 20200102509

1|Page
INDEX
Project Project Name Teacher
Number Signature
1. Write a Python program to
implement a stack using the
list.
2. Create a student table and
insert data.
3. ALTER table to add new
attributes / drop attribute /
rename.
4. UPDATE table to modify
data.
5. ORDER By to display data in
ascending / descending order
6. DELETE to remove tuple(s)
7. Integrate SQL with Python by
importing suitable module.

2|Page
 Write a Python program to implement a stack using
the list.
SOURCE CODE-

3|Page
OUTPUT-

4|Page
 Create a student table and insert data.

Query-

Table-

Query-

Table-

5|Page
 ALTER table to add new attributes / drop attribute /
rename.
Query-

Table-

Query-

Table-

Query-

Table-

6|Page
 UPDATE table to modify data.

Query-

Table-

 ORDER By to display data in ascending / descending


order

Query-(ascending)

Table-

7|Page
Query-(Descending)

Table-

 DELETE to remove tuple(s)

Query-

Table-

8|Page
 Integrate SQL with Python by importing suitable
module.
Source Code-

Output-

9|Page
Source code-

Output-

Source code-

10 | P a g e
Output-

Source code-

Output-

11 | P a g e
Source code-

Output-

Source code-

Output-

12 | P a g e

You might also like