You are on page 1of 12

1.

Read a text file and display the number of vowels/consonants/uppercase/lowercase characters in the
file
OUTPUT:
2.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.

OUTPUT:
3.Create a CSV file by entering user-id and password, read and search the password for given user-id.

Output:
4.Write a Program to find factorial of the entered number.

Output:

5.Read a file line by line and print it.

Assume we have the following file, located in the same folder as Python:
Output:

6.Create a binary file with name and roll no. Search for a given roll number and display the name, if not
found display appropriate message.
OUTPUT:

7. Write a random number generator that generates random numbers between 1 and 6(simulates a dice)
OUTPUT:

8.Write a python program to take input for 2 numbers, calculate and print their sum, product and
difference?

OUTPUT:

9.Write a python program to take input for a number and print its table?

OUTPUT:
10. create a dictionary containing names of compition winner students as keys and numbers

of their wins as value.

OUTPUT:

11.program to calculate simple interest using a function interst() that can recive principal amount,time
and rate and return calculated simple interst.
OUTPUT:

12.write a program to check leap year

OUTPUT:

13.Write a program to find the area of triuangle.


OUTPUT:

14.write a program to check whether the number is even or not.

OUTPUT:

15.Write a program to find out the average of a set of integers.

OUTPUT:

You might also like