You are on page 1of 1

PRACTICAL PROGRAMS:

1. Write a program to pass a list to a function and double the odd values and half the even
values of the list and display the list element after changing.
2. Write a program to put n numbers in tuple and count how many even and odd numbers is
entered.
3. Write a program to count how many vowels are present in the string.
4. Write a python program to check whether the given number is prime or not.
5. Write a program to generate random numbers between 1 and 6 using user defined function
6. Write a program to read and display file content line b y line with each word separated by ‘#’.
7. Write a program to read a file ‘book.txt’ print the contents of the file along with number of
words and frequency of word ‘computer’ in it
8. Write a program to read the content of the file and display the total number of consonants
uppercase vowels lowercase and special characters.
9. Write a program to create a binary file with name, roll no. Search for a given roll no and
display name. If not found display ‘Appropriate message’.
10. Write a program for linear search.

You might also like