cs record
cs record
DATE:
PROGRAM:
8) Write a command to retrieve rno, s_name and stream from the relation s1.
10) Write a command to display s_name and stream of the students whose stream is equal to cs.
11) Write a command to display name and stream in the ascending order of name.
12) Write a command to display name and stream in the descending order of
13) Write a command to add new column marks to the table s1.
14) Write a command to display name, stream and marks of the students who are in stream
cs and have marks greater than 90.
17) Write a query to display the name of the students whose name is starting with ‘A’
19) Write a query to display name of all students whose fees contains null
20) Write a query to display max, min, sum, avg, count(*), count(marks),
count(distinct(marks)) of each stream
21) Write a query to display stream where the number of students is more than
22) Write a query to display rno, s_name, address and phone_no of tables s1 and s2.
DAT
AIM: To the number of lines that start with uppercase letter in a text
PROGRA
TEXTFILE:
OUTPUT:
EXPT TEXT
DAT
PROGRA
TEXTFILE:
OUTPUT:
EXPT TEXT
DAT
AIM: To copy all five letter words from a text file and display it in other text
PROGRA
TEXTFILE:
OUTPUT:
EXPT TEXT
DAT
AIM: To count and display the number of vowels and consonants present in a text
PROGRA
TEXTFILE:
OUTPUT:
EXPT BINARY
DAT
PROGRA
OUTPUT:
EXPT BINARY
DAT
PROGRA
OUTPUT:
EXPT BINARY
DAT
PROGRA
OUTPUT:
EXPT BINARY
DAT
PROGRA
OUTPUT:
EXPT CSV
DAT
PROGRA
EXEL SHEET:
OUTPUT:
EXPT CSV
DAT
PROGRA
EXEL SHEET:
OUTPUT:
EXPT CSV
DAT
AIM: To copy details of employee whose employee id is greater than 10 from one csv file to
PROGRA
EXEL SHEET:
EXPT EXCEPTION
DAT
PROGRA
OUTPUT:
EXPT EXCEPTION
DAT
AIM: To prompt the user to input an integer and raise a value error exception if the input is not
valid
PROGRAM:
OUTPUT:
EXPT EXCEPTION
DAT
AIM: To open a file and handle a Filenotfounderror exception if file does not
PROGRA
OUTPUT:
EXPT EXCEPTION
DAT
PROGRA
OUTPUT:
EXPT STACK
DAT
AIM: To create a stack with attributes (Name,age,dept,salary) and push, pop, peek, display
element in
PROGRA
OUTPUT:
EXPT STACK
DAT
AIM: To perform push and pop operations with a stack of list containing integers and to push
PROGRA
OUTPUT:
EXPT STACK
DAT
AIM: To push all strings which has no vowels in it into the list novowel to delete the last element
PROGRA
OUTPUT:
EXPT STACK
DAT
AIM: To push the keys (names,mark) into a stack where corresponding value is greater than
PROGRA
OUTPUT:
EXPT INTERFACE OF PYTHON WITH
DAT
PROGRAM:
OUTPUT:
(a) fetchall()
OUTPUT:
(b) fetchmany()
OUTPUT:
(c) fetchone()
OUTPUT:
(iv)alter table:-
EXPT NO: INTERFACE OF PYTHON WITH MYSQL-II
DATE:
AIM: To create a database and table and perform various SQL queries using python-MySQL
connect
PROGRAM:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
EXPT NO: INTERFACE OF PYTHON WITH
DATE:
AIM: To create a database and table and perform various SQL queries using parameterized queries
PROGRAM:
OUTPUT:
(iv) show table:-
OUTPUT:
OUTPUT:
OUTPUT:
EXPT NO: INTERFACE OF PYTHON WITH
DATE:
AIM: To write a program to connect python with MySQL using parameterized queries
PROGRAM:
OUTPUT: insert values