0% found this document useful (0 votes)
20 views

Practical File All Programs

Uploaded by

Arpit Patel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Practical File All Programs

Uploaded by

Arpit Patel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practical File All Programs

1. Write a program in Python to enter 2 numbers and print all the arithmetic
operations.

2. Write a program in Python to find the factorial of the entered number.

3. Write a program using function to check whether a number is perfect, even or


odd.

4. Write a program using function to generate values from 1 to 10, and then
remove all those numbers which are odd in the list.

5. Write a program in Python to read a text file line by line, and display each
word separated by @.

6. Write a program in Python to write the content of a text file to another text
file.

7. Write a program in Python to find and replace a word in text file.

8. Write a program in Python to read text file and display the number of vowels,
consonants, uppercase, lowercase letters.

9. Write a program in Python to display the Fibonacci series.

10. Write a menu driven program to find the factorial and sum of list of
numbers using function.

11. Write a Python program to search for the position of string in a given
group of strings.

12. Write a Python program to create a new object inside a function does
not modify outside object.

13. Write a Program to import & use the Arith.py

14. Write a Program in Python to copy an image file into another file.
15. Write a Program to increase the Salary by Rs. 2000 of the employee no
#1251 in the file employee.dat

16. Write a Program to read the following details of sports performance


(Sport, Competition, Prize) of your school and store into a CSV file, using tab
character as a delimiter.

17. Write a binary file Book.dat having structure:

Book Name Author Prize


Book1 Author1 1000
Book2 Author2 2000
…………. …………. …………
…………. …………. …………
a. Write a user defined function to input data for record and add to
Book.dat

b. Write a function Count_Record named CR(Author) in Python which


accepts the author name and count and return number of books in
Book.dat

18. Write a menu-driven program in Python to implement Stack


operations(Push, Pop, Peek, Display, Exit).

19. Write a Python Program to implement a Stack for the Employee details.

a. Add Employee

b. Delete Employee

c. Traverse Employees

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy