Practfile 2324
Practfile 2324
Write a program that reads a string and print its statistics like
No of Uppercase letters
No of Lowercase letters
No of alphabets
No of digits
Other Characters
1 2
1 2 3
1 2 3 4
1 2 3 4 5
5. Write a program in python to read a list and sort the values of list without
using build in functions.
in to the text file poem.txt. Also read the content of text file line by line and
display each word separated by #.
14. Write a program in python to create binary file employee.dat with 4 records
containing the following information employee no, employee name and salary.
Also read the content of the binary file and display all those employees whose
salary is above 25000 and also count and display the no of employees whose
salary is above 25000. If not found then display appropriate message
15. Write a function in python to update the starting point as Chennai, whose
destination is “Cochin” from binary file “Bus.Dat”. Assuming the binary file is
containing the following elements in the list:
1. Bus Number
2. Bus Starting Point
3. Bus Destination
Write a complete program to create a file bus.dat with 4 records and invoke the
function.