0% found this document useful (0 votes)
0 views2 pages

cs index file bb

The document outlines a series of programming practicals, each with a specific task related to string and file manipulation, data structures, and functions. It includes tasks such as counting vowels, creating dictionaries, checking for palindromes, and working with binary files. Each practical is numbered and includes a page number for reference.

Uploaded by

Mohit Sharma
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)
0 views2 pages

cs index file bb

The document outlines a series of programming practicals, each with a specific task related to string and file manipulation, data structures, and functions. It includes tasks such as counting vowels, creating dictionaries, checking for palindromes, and working with binary files. Each practical is numbered and includes a page number for reference.

Uploaded by

Mohit Sharma
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/ 2

S.

N Practical’s Name Page Teacher’s


Sign
O. No.
1 Write a program to input a string, and count 9
number of vowels.
2 Write a program to create a Ditionary 10
containing name and fee of three
students.Calculate and print the total fee.
3 Write a function print Largest Name(list),whict 11
accepts a list as argument. Print those names
having maximum number of character.
4 Write a function which takes a list as 12
argument, and create another two lists
named even and odd , containing even and
odd numbers respectively.
5 Write a program to input five names in tuple. 13
Display those name having first character is
vowel.
6 Create a function to check the given string is 14
palindrome. If Palindrome then return True
otherwise return false.
7 Create a Function to Guess Numbers(), which 15
ask a number between 1 to 6 form user.
Generate a random number between 1 to 6
through random module and check the User
Guess is matched or not. Display appropriate
message,.
8 Create functions Wrtie_Text() and Read_Text(). 16
Write_Text() to write the contents in the text
file "story.txt" line by line. Read Text() read
the text file "story.txt" and display each word
separated by a '@'.
9 Create a function Count Characters(filename), 17
which receive filename as argument. Count
Character (filename) function will read text
file "story.txt" and display the number of
vowels, consonants, lowercase, characters in
the file.
10 Create a function Copy_File(target filename), 19
which receive filename as argument. Copy
File (target file name) function read a text file
"story.txt", copy those lines only to target
filename, which are not started with either "T"
or 'A'.
11 Create a binary file "Student.dat" with name, 20
roll number, and marks. Write a function
Search (rollnumber) for a given roll number
and display the name, if not found display
appropriate message.
12 Create a binary file "Employee.dat" with emp 21
id, name and salary. Write a function
Update_Sal(empid), receive an employee id
and update the salary.

You might also like