You are on page 1of 1

1.

Write a Program in python to find the Sum of all the elements of a user entered List using
Functions.
2. Write program to check a given number is palindrome or not? Using function.
3. Write a program to print prime numbers between two intervals.\
4. Write a program to read a text file abc.txt line by line and display each word separated by #.
5. Read a text file and display the number of vowels/consonants/uppercase/lowercase
characters in the file.
6. Remove all the lines that contain the character `a' in a file Student.txt and write it to another
file Afile.txt.
7. Write a function in Python that counts the number of “Me” or “My” words present in a text
file “STORY.TXT”
8. Write a function countAM() in Python, which should read each character of a text file
STORY.TXT, should count and display the occurrence of alphabets A and M.
9. Write a function Show_five() in python to read the content of a text file REPORT.TXT, display
only such lines (sentences) of the file which have exactly five words in them.
10. 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.
11. Create a binary file with roll number, name and marks. Input a roll number and update the
marks.

You might also like