You are on page 1of 3

SR.

NO CONTENTS PAGE REMARKS

1 Input a welcome message and display it. 7

2 Input two numbers and display the larger / smaller number. 8

3 Input three numbers and display the largest / smallest number. 9

4 Generate the following patterns using nested loops: 10-11

Pattern-1 Pattern-2 Pattern-3


* 12345 A
** 1234 AB
*** 123 ABC
**** 12 ABCD
***** 1 ABCDE

5 Write a program to input the value of x and n and print the sum of 12-15
the following series:
⮚ 1 + x + x2 + x3 + x4 +……..xn
⮚ 1 – x + x2 – x3 + x4 -………..xn
⮚ x + x2 / 2 + x3 / 3 + x4 / 4+………….xn ./ n
⮚ x + x2 / 2! + ……..xn / n!
6 Determine whether a number is a perfect number, an Armstrong 15-17
number or a palindrome.
7 Input a number and check if the number is a prime or composite 18
number.
8 Display the terms of a Fibonacci series. 19-20

9 Compute the greatest common divisor and least common multiple 21


of two integers
10 Count and display the number of vowels, consonants, uppercase, 22
lowercase characters in string.
11 Input a string and determine whether it is a palindrome or not; 23
convert the case of characters in a string
12 Find the largest/smallest number in a list/tuple 24

13 Input a list of numbers and swap elements at the even location 25


with the elements at the odd location
14 Input a list/tuple of elements, search for a given element in the 26-27
list/tuple.
15 Create a dictionary with the roll number, name and marks of n 27-28
students in a class and display
the names of students who have marks above 75.
SR.NO CONTENTS PAGE REMARKS

16 Read a text file line by line and display each word 29


separated by a #.
17 Read a text file and display the number of 30-31
vowels/consonants/uppercase/lowercase
characters in the file.
18 Remove all the lines that contain the character 'a' in a file 31
and write it to another file.
19 Create a binary file with name and roll number. Search 32-33
for a given roll number and
display the name, if not found display appropriate
message.
20 Create a binary file with roll number, name and marks. 33-35
Input a roll number and update
the marks.
21 Write a random number generator that generates 36
random numbers between 1 and 6
(simulates a dice).
22 Write a Python program to implement a stack using list. 37-38

23 Create a CSV file by entering user-id and password, read 39-40


and search the password for
given userid.

Database Management

24 Create a student table and insert data. Implement the 41-42


following SQL commands on the
student table:
25 ALTER table to add new attributes / modify data type / 443-
drop attribute
44
26 UPDATE table to modify data 44-45

27 ORDER By to display data in ascending / descending 45-46


order
28 DELETE to remove tuple(s) 4647

29 GROUP BY and find the min, max, sum, count and 47-48
average.
Python-MYSQL Connectivity

30 Inserting data in table using python 48-49


31 Updating data in table using python 49-50
32 Search and retrive data form table using 50-51
python
33 LIBRARY MANAGEMENT using python- 52-57
MYSQL connectivity
 Login authentication
 Add book
 Find books by isbn, title, auther
 Delete books
34 GUI library management using using python- 57-64
MYSQL connectivity.

You might also like