computer science practical file
computer science practical file
ROLL NO:
[Signature of Teacher/HOD]:
ACKNOWLEDEGEMENT
I would like to express my sincere
gratitude to my mentor Mr. Vinay sir for their
guidance and support throughout this
practical file. Their feedback was invaluable,
and their encouragement helped me to stay
motivated and on track. I am grateful for their
patience and kindness. Also I am grateful
for the resources provided by my school and
library, which made it possible to complete
this practical file. finally, I would like to thank
my friends and family for their support and
encouragement. They helped me to get
through the tough times and celebrate my
successes. I could not have done this
without them.
TABLE OF CONTEXT
S.NO DATE TOPIC PAGE SIGNATURE
NO.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
PROGRAM – 1
Q1 write a program to print all even numbers in a
given range.
A=2
Y = 16 # ("defining the range")
for i in range(A,Y+1):
if i%2 ==0:
print (i , end='')
OUTPUT:-
PROGRAM – 2
Q2. write a program to calculate the sum of odd
numbers in a given range.
sum = 0
for i in range(1,10):
if i%2!=0:
sum = sum +i
print (sum)
OUTPUT:-
PROGRAM – 1
PROGRAM – 1