0% found this document useful (0 votes)
15 views28 pages

Python Project Full Template

This document is a practical record file for Computer Science at Presidency School, Bangalore North, for the academic year 2024-25. It includes a laboratory certificate and an index of 20 Python programming assignments covering various topics such as calculations, data structures, and user input handling. Each program is accompanied by a space for source code and output, indicating a comprehensive practical curriculum.

Uploaded by

abrar207.baig
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)
15 views28 pages

Python Project Full Template

This document is a practical record file for Computer Science at Presidency School, Bangalore North, for the academic year 2024-25. It includes a laboratory certificate and an index of 20 Python programming assignments covering various topics such as calculations, data structures, and user input handling. Each program is accompanied by a space for source code and output, indicating a comprehensive practical curriculum.

Uploaded by

abrar207.baig
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/ 28

PRESIDENCY SCHOOL

Bangalore North
Avalahalli, Yelahanka

Computer Science(083)
TERM – 1 PRACTICAL RECORD FILE

SUBMITTED BY
NAME :
ROLL NO :
CLASS :
YEAR : 2024-25

LABORATORY CERTIFICATE
Page 1 of 28
Name : Class:

Reg. No : Roll No:

Institution: Presidency School


(PSBN)
This is certified to be the
bonafied work of the student in
the Computer Science
Laboratory during the academic
session 2024-25
No of practical certified
20 out of 20 (Term1-11 & term2-
9) in the subject of Computer
Science.
........................

Teacher In-
Charge
........................ ...
.....................

Examiner’s Signature
Principal
Date of Practical Examination:
Term 1: / / 2024
Term 2 : / /2024
Page 2 of 28
PYTHO
N

Page 3 of 28
PROGR
AMS

Page 4 of 28
INDEX
SL. NAME OF PROGRAM PAGE DATE SIGN
NO NO
1. Write a python program to find the average 4-5 1/7/2024
of five subjects and calculate their grade

2. Write a python program to find the sales 6-6 7/7/2024


price of an item with a given cost and
discount percentage

3. Write a python program to calculate 7-10 14/7/2024


perimeter, circumference and area of shapes
such as triangle, rectangle square and circle

4. Write a python program to calculate simple 11 20/6/2024


and compound interest

5. Write a python program to find the largest 12 25/6/2024


and smaller number in a list

6. Write a python program to find third largest 13 28/6/2024


and third smallest number from a list

7. Write a python program to find the sum of 14 2/7/2024


squares of the first 10 natural numbers

8. Write a python program to count the number 15 5/7/2024


number of vowels in a user entered string
9. Write a python program to print the number 16 10/7/2024
of occurrences of a given alphabet in each
string
10. Write a python program to display numbers 17 18/7/2024
from -10 to -1 using for loop

11. Write a python program to check if the 18 19/7/2024


entered number/string is a palindrome or not

Page 5 of 28
12 Write a Menu Driven program that executes as 25/09/2024
long as the user wants.
1. Create a List
2. Append a value to the List
3. Extend the List
4. Insert a value at a particular index 5.
Exit
13 To write a program to input your friend’s names 18/10/2024
and their phone numbers and store them in the
dictionary as the key-value pair.

14 Write a program to accept five numbers from the 0810/2024


user and store these numbers in a tuple. Display
the following from the tuple.
(i) Largest number;
(ii) Smallest number;
(iii) Sum of all the numbers;
(iv) Average of all the numbers.
15 Write a Menu Driven program that executes as 28/11/2024
long as the user wants. (Use math and random
Module)
1. Find Absolute Value of a number
2. Find Square root of a number
3. Find Logarithmic value of number
4. Generate 4 digit random integer 5. Exit

16 Write a program that accepts a string, count and 16/08/2024


print the following
1. No. of Characters
2. No. of Spaces
3. No. of Letters (Alphabet)
4. No. of Digits
5. No. of Upper Case Letters
6. No. of Lower Case Letters
7. No. of Special Characters
8. No. of Words

Page 6 of 28
17 Write a menu driven program to input your 20/112024
friends names and their phone numbers and
store them in the dictionary as the key-value
pair. Perform the following operations on
the dictionary.:
a. Display the name and phone number
of all your friends
b. Add a new key- value pair in this
dictionary and display the modified dictionary
c. Delete a particular friend from
the dictionary
d. Modify the phone number of an existing
friend
e. Check if the friend is present in
the dictionary
f. Display the dictionary in sorted order
of names
18 Write a program to repeatedly ask the user to 21/11/2024
enter product names and prices. Store all of
these in a dictionary whose keys are the product
names and whose values are the prices.
****when the user is done entering products
and prices ,allow them to repeatedly enter a
product name and print the corresponding price
or print a message product does not exist.
19 WAP to accept a list of values and display 23/06/2024
options for remove all 1. odd numbers
from the list
2. Even numbers
20 WAP to accept a list of values and 24/11/2024
display options for deleting elements in a
list with options for
1. Delete using value
2. Delete using index
3. Delete a sublist

Page 7 of 28
1. Write a python program to find the average of five subjects and
calculate their grade:
Ans:
Source code:

Output:

Page 8 of 28
2. Write a python program to find the sales price of an item with a given
cost and discount percentage:

Code:

Output:

Page 9 of 28
3. Write a python program to calculate perimeter, circumference and
area of shapes such as triangle, rectangle square and circle: ‘

Code:

Output:

Page 10 of 28
4. Write a python program to calculate simple and compound interest:

Code:

Output:

Page 11 of 28
5. Write a python program to find the largest and smaller number in a list:

Code:

Output:

Page 12 of 28
6) Write a python program to find third largest and third smallest number
from a list:

Code:

Output:

Page 13 of 28
7) Write a python program to find the sum of squares of the first 10
natural numbers:

Code:

Output:

Page 14 of 28
8) Write a python program to count the number of vowels in a user
entered string:

Code:

Output:

Page 15 of 28
9) Write a python program to print the number of occurences of a given
alphabet in each string:

Code:

Output:

Page 16 of 28
10. Write a python program to display numbers from -10 to -1 using for
loop:

Code:

Output:

Page 17 of 28
11. Write a python program to check if the entered number/string is a
palindrome or not

Code:

Output:

Page 18 of 28
12. Write a Menu Driven program that executes as long as the user wants.
i. Create a list
ii. Append a value to the list
iii. Extend the list
iv. Insert a value at a particular index
v. Exit

Code:

Output:

Page 19 of 28
13. To write a program to input your friend’s name and their phone
numbers and store them in the dictionary as the key-value pair.

Code:

Output:

Page 20 of 28
14. Write a program to accept five numbers from the user and store these
numbers in a tuple. Display the following from the tuple:

i. Largest number;

ii. Smallest number;

iii. Sum of all the numbers;

iv. Average of all the numbers

Code:

Output:

Page 21 of 28
15. Write a Menu Driven program that executes as long as the user wants.
(Use math and random Module)

i. Find Absolute Value of a number

ii. Find square root of a number

iii. Find Logarithmic value of number

iv. Generate 4 digit random integer

v. Exit

Code:

Output:

Page 22 of 28
16. Write a program that accepts a string, count and print the following:

i. No. of Characters

ii. No. of Spaces

iii. No. of Letters (Alphabet)

iv. No. of Digits

v. No. of Upper Case Letters

vi. No. of Lower Case Letters

vii. No. of Special Characters

viii. No. of Words

Code:

Output:

Page 23 of 28
17. Write a menu driven program to input your friends name and their
phone numbers and store them in the dictionary as key-value pair. Perform
the following operations on the dictionary.

a. Display the name and phone numbers of all your friends

b. Add a new key-value pair in this dictionary and display the modifies
dictionary

c. Delete a particular friend from the dictionary

d. Modify the phone numbers of an existing friend

Code:

Output:

Page 24 of 28
18. Write a program to repeatedly ask the user to enter product names and
prices. Store all of these in a dictionary whose keys are the product names
and whose values are the prices. ****when the user is done entering
products and prices, allow them to repeatedly enter a product name and
print the corresponding price or print a message product does not exist

Code:

Output:

Page 25 of 28
19. WAP to accept a list of values and display options for remove all

i. odd numbers from the list

ii. all even numbers from the list

Code:

Output:

Page 26 of 28
20. WAP to accept a list of values and display options for deleting elements
in a list with options for

i. Delete using value

ii. Delete using index

iii. Delete a sublist

Code:

Output:

Page 27 of 28
Page 28 of 28

You might also like