CS XI Practical File 24-25
CS XI Practical File 24-25
Submitted By:
Roll No:
Name:
Class:
1|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
CERTIFICATE
This is to certify that the Computer Science (083) Practical File has
been successfully completed by____<Your Name>___(Roll
No:__________) of Class XI, SHK SBV Lajpat Nagar School for
consideration in partial fulfilment of curriculum of Central Board of
Secondary Education (CBSE) of Computer Science (083) for the award
of AISSCE Practical Examination 2024-25.
I certify that this practical report is up to my expectation and as per
the guidelines issued by the CBSE.
________________ __________________
External Deepak Kr Meena
Examiner Lect. Comp. Sc.
2|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
ACKNOWLEDGEMENT
3|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
TABLE OF CONTENT
Sr. No. Topic Page No Remarks
1 Overview of Python 6
2 Practical 1 7
3 Practical 2 8
4 Practical 3 9
5 Practical 4 10
6 Practical 5 11
7 Practical 6 12
8 Practical 7 13
9 Practical 8 14
10 Practical 9 15
11 Practical 10 16
12 Practical 11 17
13 Practical 12 18
14 Practical 13 19
15 Practical 14 20
16 Practical 15 21
17 Practical 16 22
18 Practical 17 23
19 Practical 18 24
4|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
TABLE OF CONTENT
Sr. No. Topic Page No Remarks
20 Practical 19 25
21 Practical 20 26
22 Practical 21 27
23 Practical 22 28
24 Practical 23 29
25 Practical 24 30
26 Practical 25 31
27 Practical 26 32
28 Practical 27 33
29 Practical 28 34
5|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
OVERVIEW OF PYTHON
6|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.1: Write a Python program to input a welcome message and display it.
Source Code:
Output:
7|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.2: Write a Python program to find out largest number of given two numbers by user.
Source Code:
Output:
8|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.3: Write a Python program to find out smallest number of given two numbers given
by user.
Source Code:
Output:
9|Page
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.4: Write a Python program to find out smallest number of given three numbers given
by user.
Source Code:
Output:
10 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.5: Write a Python program to find out largest number of given three numbers given
by user.
Source Code:
Output:
11 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.6: Write a Python program to display following pattern:
*
* *
* * *
* * * *
* * * * *
Source Code:
Output:
12 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.7: Write a Python program to display following pattern:
12345
1234
123
12
1
Source Code:
Output:
13 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.8: Write a Python program to display following pattern:
A
AB
ABC
ABCD
ABCDE
Source Code:
Output:
14 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.9: Write a Python program to display following pattern.
A
BB
CCC
DDDD
EEEEE
Source Code:
Output:
15 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.10: To write a menu driven Python program to perform Arithmetic
operations (+, -, *, /) based on the user’s choice.
Source Code:
Output:
16 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.11: To write a Python Program to display Fibonacci Series up to ‘n’
numbers.
Source Code:
Output:
17 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.12: To write a menu driven Python Program to find Factorial and sum of
list of numbers using function.
Source Code:
Output:
18 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.13: 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
Source Code:
Output:
19 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.14: To write a Python program to generate random number between 1 to 6
to simulate the dice.
Source Code:
Output:
20 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.15: Write a Python program to input the value of x and n and display the sum of the
following series:
1 + x + x2 + x3 + x4 + …… xn
Source Code:
Output:
21 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.16: Write a Python program to input the value of x and n and display the sum of the
following series:
1 – x + x2 - x3 + x4 - …… xn
Source Code:
Output:
22 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.17: Write a Python program to find out that given number by the user is palindrome
number or not.
Source Code:
Output:
23 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.18: Write a Python program to find out that given number by the user is Armstrong
number or not.
Source Code:
Output:
24 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.19: Write a Python program to find out that given number by the user is perfect
number or not.
Source Code:
Output:
25 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.20: Write a Python program to find out that given number by the user is prime
number or not.
Source Code:
Output:
26 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.21: Write a Python program to find out that given number by the user is composite
number or not.
Source Code:
Output:
27 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.22: Write a Python program to compute the greatest common divisor and least
common multiple of given two numbers by the user.
Source Code:
Output:
28 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.23: Write a Python program to count and display the number of vowels, consonants,
uppercase, lowercase, characters in the given string by the user.
Source Code:
Output:
29 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.24: Write a Python program to input a string and determine whether it is a
palindrome or not; convert the case of characters in a string.
Source Code:
Output:
30 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.25: Write a Python program to find the largest and smallest number in a given list.
Source Code:
Output:
31 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.26: Write a Python program to input a list of numbers and swap elements at the even
location with the elements of odd location.
Source Code:
Output:
32 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.27: Write a Python program to input a list of elements, search for a given element in
the list.
Source Code:
Output:
33 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)
Prac.28: Write a Python program to create a dictionary with roll number, name and marks
of students in a class and display the names of students who have marks above 75.
Source Code:
Output:
34 | P a g e
Mr. Deepak Kr Meena (Lecturer Computer Science)