CBSE Affiliation No: xxxxxxx
Name PREETI
Registered No Year 2025-26
School Bloom International School
This is Certified to be the Bonafide work of the student
in this Laboratory and submitted for the practical examination held
on at
…………………………………………….. …………………………………………....
Principal/H.M Teacher – in – charge
…………………………………………….. …………………………………………......
Internal Examiner External Examiner
S NO. DATE CONTENTS P NO. TEACHER’S
ITNITIAL
1 CREATING A MENU DRIVEN
PROGRAM TO PERFORM
ARITHMETIC OPERATIONS
2 CREATING A PYTHON
PROGRAM TO DISPLAY
FIBONACCI SERIES
CREATING A MENU DRIVEN
3 PROGRAM TO FIND FACTORIAL
AND SUM OF LIST OF NUMBERS
USING FUNCTION
4 CREATING A PYTHON
PROGRAM TO IMPLEMENT
5 USER DEFINED FUNCTION
WITH PARAMETERS
6 COUNTING NUMBER OF WORDS
IN DATA FILE
CREATING A PYTHON
7 PROGRAM TO GENERATE
RANDOM NUMBER BETWEEN 1
TO 6
CREATING A PYTHON PROGRAM
8 TO READ A TEXT FILE LINE BY
LINE AND DISPLAY EACH WORD
SEPARATED BY '#'
CREATING A PYTHON PROGRAM
9 TO READ A TEXT FILE AND
DISPLAY THE NUMBER OF
VOWELS/CONSONANTS/LOWER
CASE/ UPPER CASE CHARACTERS
CREATING A PYTHON
10 PROGRAM TO COPY
PARTICULAR LINES OF A TEXT
FILE INTO AN ANOTHER TEXT
FILE
PROGRAM 1
CREATING A MENU DRIVEN PROGRAM TO
PERFORM ARITHMETIC OPERATIONS
AIM:
To write a menu driven Python Program to
perform Arithmetic operations (+,-*, /)
based on the user’s choice.
CODE:
OUTPUT:
PROGRAM 2
CREATING A PYTHON PROGRAM TO DISPLAY
FIBONACCI SERIES
AIM:
To write a Python Program to display Fibonacci Series
up to ‘n’ numbers.
CODE:
OUTPUT:
PROGRAM 3
CREATING A MENU DRIVEN PROGRAM TO FIND
FACTORIAL AND SUM OF LIST OF NUMBERS
USING FUNCTION.
AIM:
To write a menu driven Python Program to find
Factorial and sum of list of numbers using function.
CODE:
OUTPUT:
PROGRAM 4
CREATING A PYTHON PROGRAM TO IMPLEMENT
MATHEMATICAL FUNCTIONS
AIM:
To write a Python program to implement python
mathematical functions to find:
(i) To find Square of a Number.
(ii) To find Log of a Number (i.e. Log10)
(iii) To find Quad of a Number
CODE:
OUTPUT:
PROGRAM 5
USER DEFINED FUNCTIONS WITH PARAMETERS
AIM:
Program to find simple interest using a user defined
function with parameters and with return value.
CODE:
OUTPUT:
PROGRAM 6
COUNTING NUMBER OF WORDS IN DATA FILE
AIM:
Program to count number of words in data file
[Link]
CODE:
OUTPUT:
PROGRAM 7
CREATING A PYTHON PROGRAM TO GENERATE
RANDOM NUMBER BETWEEN 1 TO 6
AIM:
To write a Python program to generate random
number between 1 to 6 to simulate the dice.
CODE:
OUTPUT:
PROGRAM 8
CREATING A PYTHON PROGRAM TO READ A TEXT
FILE LINE BY LINE AND DISPLAY EACH WORD
SEPARATED BY ‘#’
AIM:
To write a Python Program to Read a text file
"[Link]" line by line and display each word
separated by '#'.
CODE:
OUTPUT:
PROGRAM 9
CREATING A PYTHON PROGRAM TO READ A TEXT
FILE AND DISPLAY THE NUMBER OF
VOWELS/CONSONANTS/LOWER CASE/ UPPER
CASE CHARACTERS.
AIM:
To write a Python Program to read a text file
"[Link]" and displays the number of Vowels/
Consonants/ Lowercase / Uppercase/characters in
the file.
CODE:
OUTPUT:
PROGRAM 10
CREATING A PYTHON PROGRAM TO COPY
PARTICULAR LINES OF A TEXT FILE INTO AN
ANOTHER TEXT FILE
AIM:
To write a python program to read lines from a text file
"[Link]" and copy those lines into another file which
are starting with an alphabet 'a' or 'A'.
CODE:
OUTPUT: