0% found this document useful (0 votes)
11 views

Practical file (final)

Uploaded by

honeyyoyyo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Practical file (final)

Uploaded by

honeyyoyyo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

A.K.

CHILDREN ACADEMY,
RAJ NAGAR Extension, GZB

Practical file on
Computer science (083)
Session: 2023-2024

Topics covered: Python Programs

SUBMITTED TO: SUBMITTED BY:

Ms. Achla Agarwal Ummi Parthasarathi


PGT(COMP.SCI) Class: XI-A
Roll No.: 25
INDEX
S. No. T. Sign
Programs
1. WAP to compute xn of given two integers x and n

2. WAP to calculate Simple Interest

3. WAP to input three numbers and display the largest /


smallest number
4. WAP to accept a number from the user and display
whether it is an even number or odd number
5. WAP to accept percentage of a student and displays
its grade accordingly
6. WAP to print Fibonacci Series up to certain limit
7. WAP to compute the greatest common divisor
and least common multiple of two integers.
8. WAP to reverse a number entered by the user & also
to check whether the entered number is palindrome
of not
9. WAP to accept a number, find and display whether
it’s an Armstrong number or not.

10. Write a program to print the following patterns using


nested loop:
a) * b) 1 c) 2 d) 12345 e) A
** 12 24 1234 AB
*** 123 246 123 ABC
**** 1234 2468 12 ABCD
1 ABCDE

11. WAP to input a number and check if the


number is a prime or composite number.
12. WAP to find the sum of the following series :
a) 1 + 1/1! + 1/2! + 1/3!+ …..
b) x- x 2 /2!+ x 3 /3!- x 4 /4!+ x 5 /5!- x 6 /6!
c) x + x 2 /2+ x 3 /3+ x 4 /4 +…. x n /n
WAP to compute xn of given two integers x and n

Input:

Output:
WAP to calculate Simple Interest

Input:

Output:
WAP to input three numbers and display the largest /
smallest number

Input:

Output:
WAP to accept a number from the user and display
whether it is an even number or odd number

Input:

Output:
WAP to accept percentage of a student and displays its
grade accordingly

Input:

Output:
WAP to print Fibonacci Series up to certain limit

Input:

Output:
WAP to compute the greatest common divisor and least
common multiple of two integers.

Input:

Output:
WAP to reverse a number entered by the user & also to
check whether the entered number is palindrome of not

Input:

Output:
WAP to accept a number, find and display whether it’s an
Armstrong number or not.

Input:

Output:
WAP to input a number and check if the number is a prime
or composite number.

Input:

Output:
WAP to find the sum of the following series :

a) 1 + 1/1! + 1/2! + 1/3! + …..

Input:

Output:
b) x- x 2 /2!+ x 3 /3!- x 4 /4!+ x 5 /5!- x 6 /6!

Input:

Output:
c) x + x 2 /2+ x 3 /3+ x 4 /4 +…. x n /n

Input:

Output:
Write a program to print the following patterns using nested loop:

a) * b) 1 c) 2 d) A
** 12 24 AB
*** 123 246 ABC
**** 1234 2468 ABCD
ABCDE

a)*
**
***
****

Input:

Output:
b) 1
12
123
1234

Input:

Output:
c) 2
24
246
2468

Input:

Output:
d) A
AB
ABC
ABCD
ABCDE

Input:

Output:

You might also like