0% found this document useful (0 votes)
288 views16 pages

Practical File Python 2024-25

Uploaded by

sanjaygangwar975
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)
288 views16 pages

Practical File Python 2024-25

Uploaded by

sanjaygangwar975
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/ 16

PROGRAM 1: Write a python program to convert a string to a list.

INPUT

OUTPUT

1|Page
PROGRAM 2: Write a Python program to create a text file using file handling
concept.
INPUT

OUTPUT

2|Page
PROGRAM 3: Write a python program to create a Binary File using file
handling concept.
INPUT

OUTPUT

3|Page
PROGRAM 4: Write a python program to store class and class teacher name
in the form of dictionary.
INPUT

OUTPUT

4|Page
PROGRAM 5: Write a python program to apply a bubble sort on a list.
INPUT

OUTPUT

5|Page
PROGRAM6: Write a python program Input a number and check if the
number is prime or composite number.
INPUT

OUTPUT

6|Page
PROGRAM 7: Write a python program Find the largest/smallest number in
a list/tuple.
INPUT

OUTPUT

7|Page
PROGRAM8: Write a python program read a text file line by line and display
each word separated by a #.
INPUT

OUTPUT

8|Page
PROGRAM9: Write a python program to a ^ b using recursion.
INPUT

OUTPUT

9|Page
PROGRAM 10: Write a Python program to traversing a linear list.
INPUT

OUTPUT

10 | P a g e
PROGRAM11: Write a Program that reads a line and prints & count
uppercase, lowercase, digits& alphabets.
INPUT

OUTPUT

11 | P a g e
PROGRAM12: A program to find Greatest Common Divisor between two
numbers.
INPUT

OUTPUT

12 | P a g e
PROGRAM13: Write A FUNCTION TO FIND FACTORIAL OF A NUMBER USING
RECURSION.
INPUT

OUTPUT

13 | P a g e
PROGRAM14: Write a python program to print n terms of specific series:
1+1/2+1/3+1/4+1/5+1/6……………………………+1/n
INPUT

OUTPUT

:
14 | P a g e
PROGRAM15: Write a Python Program to implement a stack linearly and
apply push and pop operation.
INPUT

OUTPUT

15 | P a g e
PROGRAM16: Write a python program to implement queue using list and
apply and delete operations.
INPUT

OUTPUT

16 | P a g e

You might also like