LALA KAILASHPAT SINGHANIA
PUBLIC SCHOOL
(ISO 9001:2015)
Session-2021-22
Computer Science Practical File
(Subject Code-083)
ALL INDIA SENIOR SCHOOL CERTIFICATE EXAMINATION
Guided By:- Prepared By:-
Mr.D.S. Sankhla Ma./Ms Himanshi Ramnani
(HOD - Computer Science ) Class:- XI-Section Roll No:-
CERTIFICATE
Certified that this is the bonafide work of _____________ of XI of LK
Singhania Public School. He/ She perform these experiments during
the academic year 2021-22. Number of practical certified 25 in
Computer Science.
The Student’s initiative cooperation and participation during
the practical was Excellent / Good / Average/ Below Average.
His / Her aesthetic presentation, visual appeal, expression and
neatness is Excellent / Good / Average / Below Average.
His / Her content accuracy, creativity, originality and analysis
of different perception is Excellent / Good / Average / Below
Average
Examiner’s Principal’s Teacher’s
Signature Signature Signature
SUB:- COMPUTER SCIENCE WITH PYTHON CODE :- 083
INDEX
S.N. EXPERIMENT SIGN.
1 Write a python program to input a welcome message and display it.
2 Write a python program that convert degree centigrade temperature into
degree farenhight.
3 Write a python program for calculating simple interest.
4 WAP to accept percentage of a student anddisplay its grade accordingly.
5 Write a python program to input three numbers and display the largest /
smallest number.
6 Write a python program to input two numbers and display the larger /
smaller number.
7 Write a python program that demonstrate number guessing game using if-
elif-else statement
8 Program to print the table of any n natural number
9 Program to print the number in reverse order
10 Program to print the sum of n natural numbers
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Program No : 1. Program to print the sum of n natural numbers.
Code:
n=int(input("Enter Number upto which you want to sum : ")) # asks for input
i=1 # suppose if n=3. This is means we have to add numbers between 1 to 3
sum=0 # zero added to any number, doesn't changes its value
while i<=n: # while loop followed until the value of i is less than or equals to n
sum=sum+i
i=i+1
print("Sum = ", sum) # produces output
Output :