Csproj
Csproj
Ans:
Ans:
5. Write a python function that takes a number as a parameter and
checks whether a number is prime or not.
Ans:
Ans:
7. Write a program that accepts a hyphen-separated sequence of
words as input and print the words in a hyphen-separated
sequence after storing them alphabetically.
Ans:
Ans:
9.Write a program to remove all the lines that contain the
character “b” in a file and write it into another text file.
Ans:
10. Write a program to read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in the file.
11. Write a program to create a binary file with name and roll no.
Search for a given roll number and display the name, if not found
display appropriate message.
12. Write a program to create a binary file to store Rollno, Name
and Marks and update marks of entered Rollno.
13. Write a program to implement a stack using a list data
structure.
14. Write a program to read a text file line by line and display
each word separated by #.
17. Write a program to display the size of the file after removing
EOL characters, leading and trailing white spaces and blank lines.
18. Raj has been asked to display all the students who have
secured less than 40 for Remedial Classes. Write a user-defined
function to display those students who have secured less than 40
from the binary file “Student.dat”.
19. Write a program to create CSV file and store empno, name,
salary and search any empno and display name, salary and if not
found appropriate message
20.Write a menu driven program to implement Stack in Python
using List.
21. Write a program to connect with database and store record of
employee and display records.
22. Write a program to connect with database and search
employee number in table employee and display record, if empno
not found display appropriate message.
Write a program to connect with database and update the
employee record of entered empno.
24. Write a program to connect with database and delete the
record of entered employee number