0% found this document useful (0 votes)
7 views1 page

Stack

Uploaded by

kvmxiiandxics
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Stack

Uploaded by

kvmxiiandxics
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Read a text file line by line and display each word separated by a #.

2. Read a text file and display the number of vowels/consonants/uppercase/lowercase


characters in the file.
3. Remove all the lines that contain the character 'a' in a file and write it to another file.
4. 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.
5. Create a binary file with roll number, name and marks. Input a roll number and
update the marks.
6. Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
7. Write a Python program to implement a stack using list.
8. Create a CSV file by entering user-id and password, read and search the password for
given userid.

You might also like