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

Table 1

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)
14 views1 page

Table 1

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

INDEX

S.No. Topic Teacher Sign.


PYTHON PROGRAMMING
Write a program to search an element in a list and display the
1. frequency of the element present in list and its location using
linear search.
2. Write a function that takes two numbers and returns the
number that has minimum one’s digit.

3. Write a program to pass list to a function and double the odd


values and half even values of a list and display list elements
after changing.
4. Write a program to input n numbers in tuple and pass it to
function to count how many even and odd numbers are
entered.
5. Write a program to input the elements in a dictionary and call
a function with key and value, and update value at that key in
dictionary entered by the user.
6. Write a program to pass a string to a function and count how
many vowels (upper case or lower case) present in the string.

7. Write a Python program to generate (Random Number) that


generate random numbers between 1 and 6 (simulates a dice)
using user defined function.
8. Write a function that receives two numbers and generates a
random number from the range. Using this function, the main
program should be able to print three numbers randomly.

FILE HANDLING PROGRAMS


1. WAP to read the file and count no. of lines in a file and find
the size of file.

2. WAP in python to count number of vowels and number of


digits in a text file.
3. WAP to search a word and its frequency in a text file.
4. Write a method/function DISPLAYWORDS( ) in python to
read lines from text file STORY.TXT ,and display those
words ,which are less than 4 characters.
5. Write a program to create a binary file with name and roll
number. Search for a given roll number and display
corresponding name, if not found display appropriate
message.

You might also like