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

List of Program

Uploaded by

mm.mansimishra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

List of Program

Uploaded by

mm.mansimishra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

# Program Page No

1 Write a program to take input from user and check if it is prime or not.
2 Write a program to check a number whether it is palindrome or not.
3 Write a program to display ASCII code of a character and vice versa
4 Write a program to input numbers in a list and display sum of all elements of it.
5 Write a program to print Fibonacci series.
6 Write a program to calculate the LCM and GCD of two numbers entered by the user.
Write a module NUM_GEN that contains all the function definition for generating
different type of numbers between given interval. Like Prime number, Armstrong
7
number, strong number, perfect number, even number, odd number, composite number
etc.
Write a program that import the module NUM_GEN created as per previous question
8
and generate the specific numbers as per user request.
9 Write a Program to search any word as per user choice in given string/sentence.
10 Write a program to read a text file line by line and display each word separated by '#'.
11 Write a program to count the number of vowels present in a text file.
12 Write a program to count number of words in a file.
13 Write a program to count the number of times the occurrence of 'is' word in a text file.
Write a program to write those lines which have the character 'p' from one text file to
14
another text file.
15 Write a program to read a random line from a text file.
Write a Program to read the content of file and display the total number of consonants,
16
uppercase, vowels and lower-case characters.
17 Write a program to find the most common word in a file.
Create a binary file with name and roll number of student and display the data by
18
reading the file.
Write a program to search a record using its roll number and display the name of
19
student. If record not found then display appropriate message.
20 Write a program to update the name of student by using its roll number in a binary file.
21 Write a program to delete a record from binary file.
22 Write a program to read data from a csv file and write data to a csv file.
23 Write a program to create a library in python and import it in a program.
Write a python program to implement searching methods based on user choice using a
24
list data- structure. (linear/binary).
25 Read a text file line by line and display each word separated by a #.
26 Remove all the lines that contain the character 'a' in a file and write it to another file.
27 Create a binary file with name and roll number. Search for a given roll number and
display the name, if not found display appropriate message.
Create a binary file with roll number, name and marks. Input a roll number and update
28
the marks.
Write a random number generator that generates random numbers between 1 and 6
29
(simulates a dice).
Create a CSV file by entering user-id and password, read and search the password for
30
given user id.
Create a student table and insert data. Implement the following SQL commands on the
student table:
o ALTER table to add new attributes / modify data type / drop attribute
31 o UPDATE table to modify data
o ORDER By to display data in ascending / descending order
o DELETE to remove tuple(s)
o GROUP BY and find the min, max, sum, count and average
Write a python MYSQL connectivity program that can create a database named as
32
Comp_Sci.
Write a python MYSQL connectivity program insert record in table students having
following fields:
Roll_No Integer
33
S_Name varchar(20)
S_class char(4)
S_Marks Integer
Write a python MYSQL connectivity program that can display all records from tables
34
students from database named as Comp_Sci.
Write a python MYSQL connectivity program to search a record from tables students
35
from database named as Comp_Sci on the basis of roll_no.

You might also like