0% found this document useful (0 votes)
36 views34 pages

CS XI Practical File 24-25

The document is a Computer Science practical file for Class XI students at Shaheed Hemu Kalani Sarvodaya Bal Vidyalaya, focusing on Python programming. It includes a certification section, acknowledgments, and a detailed table of contents listing various practical exercises related to Python. Each practical exercise outlines specific programming tasks, source code, and expected outputs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views34 pages

CS XI Practical File 24-25

The document is a Computer Science practical file for Class XI students at Shaheed Hemu Kalani Sarvodaya Bal Vidyalaya, focusing on Python programming. It includes a certification section, acknowledgments, and a detailed table of contents listing various practical exercises related to Python. Each practical exercise outlines specific programming tasks, source code, and expected outputs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

SHAHEED HEMU KALANI

SARVODAYA BAL VIDYALAYA


LAJPAT NAGAR
SCHOOL ID : 1925059

COMPUTER SCIENCE (083)


PRACTICAL FILE

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

I take this opportunity to express my deep sense of gratitude to


all those who have been instrumental in preparation of this project.
I feel great pleasure to express my obligation to Mr. N. K.
Sharma, Principal of SHK SBV LAJPAT NAGAR.
I am also sincerely grateful to Mr. Deepak Kumar Meena Lect.
Comp. Science, SHK SBV LAJPAT NAGAR School for his
encouragement and valuable guidance during the entire period of
work.
I would also thank all of my parents and friends for their whole
hearted support and encouragement without with this practical report
would not have been successful.
I could not forget Internet, Textbooks which provided me with
sufficient matter for reference.

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

Python is a general purpose, dynamic, high-level, and interpreted


programming language. It supports Object Oriented programming
approach to develop applications. It is simple and easy to learn and
provides lots of high-level data structures. Guido Van Rossum is
known as the founder of Python programming.
Features of Python:
• Python is a high level language. It is a free and open source
language.
• It is an interpreted language, as Python programs are executed by
an interpreter.
• Python programs are easy to understand as they have a clearly
defined syntax and relatively simple structure.
• Python is case-sensitive. For example, NUMBER and number are
not same in Python.
• Python is portable and platform independent, means it can run
on various operating systems and hardware platforms.
• Python has a rich library of predefined functions.
• Python is also helpful in web development. Many
popular web services and applications are built using
Python.
• Python uses indentation for blocks and nested blocks.

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)

You might also like