• Read a text file line by line and display each word separated
by a #.
Text File View:-
Python Input:-
Python Output:-
Read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in the file.
Text File View:-
Python Input View:-
Output View:-
Remove all the lines that contain the character 'a' in a file
and write it to another file.
Text File View:-
Python Input View:-
Output:-
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.
Python Input view:-
Output View :-
Create a binary file with name and roll number. Search for a
given roll number and display the name, if not found display app
Input View:-
Output view :-
Write a random number generator that generates random
numbers between 1 and 6 (simulates a dice).
Input View:-
Output View:-
Write a Python program to implement a stack using list
Input View:-
Output View:-
Create a CSV file by entering user-id and password, read
and search the password for given userid.
Input View:-
Output View :-
Write a Python program to store students’ details such as
admission number, roll number, name and percentage in a dictionary and
display the information of a student on the basis of the admission number
entered by the user.
Input view:-
Output View:-