You are on page 1of 26

SHIRIDI SAI PUBLIC SCHOOL

COMPUTER SCIENCE

PROJECT FILE

SUMBITTED TO: SCHOLAR:

SARFARAAZ SIR MRIDUL CHAUDHARY

XII-A
Index
No. Name Of Practical Date Pg no. Sign

Write a python script to take input for a number calculate and

1. print its square and qube.

Write a python to take input for two numbers and print their

2. sum, product and difference.

Write a python script to take input for three numbers, check

3. and print the largest number.

Write a python script to take input for 2 numbers and an

operator (+ , – , * , / ). Based on the operator calculate and print

4. the result?

Write a python script to take input for name and age of a person

5. check and print whether the person can vote or not.

Write a python script to take input for a number and print its

6. table.

Write a python script to take take input for a number and print

7. its factorial.

Write a python script to take input for a number check if the

8. entered number is Armstrong or not.

Write a python script to Display Fibonacci Sequence Using

9. Recursion?

Write a python program to maintain book details like book

code, book title and price using stacks data structures?

10. (implement push(), pop() and traverse() functions).

Write a python program to get the sum of all elements in the

11. list.

12. Program to print first n Natural numbers and their sum.

13. Program to calculate factorial of an integer using while loop.

Program to check whether the given number is palindrome or

14. not.

Write a code in python which divide all those list elements by 7


Q-Write a python script to take input for a number calculate and print its square and

qube.

CODE:

OUTPUT:

PRACTICAL -1
PRACTICAL -2

Q- Write a python script to take input for 2 numbers calculate and print their sum,
product and difference?

CODE:

OUTPUT:
PRACTICAL -3

Q- Write a python script to take input for three numbers, check and print the largest

number.

CODE:

OUTPUT:
PRACTICAL -4
Q- Write a python script to take input for 2 numbers and an operator (+ , – , * , / ).

Based on the operator calculate and print the result?

CODE:

OUTPUT:
PRACTICAL -5
Q- Write a python script to take input for name and age of a person check and print

whether the person can vote or not.

CODE:

OUTPUT:

.
PRACTICAL -6

Q- Write a python script to take input for a number and print its table.

CODE:

OUTPUT:
PRACTICAL -7

Q- Write a python script to take take input for a number and print its factorial.

CODE:

OUTPUT:
PRACTICAL -8

Q- Write a python script to take input for a number check if the entered number is

Armstrong or not.

CODE:

OUTPUT:
PRACTICAL -9

Q- Write a python script to Display Fibonacci Sequence Using Recursion?

CODE:

OUTPUT:
PRACTICAL -10

Q- Write a python program to maintain book details like book code, book title and
price using stacks data structures? (implement push(), pop() and traverse() functions).

CODE:

OUTPUT:
PRACTICAL -11

Q-Write a python program to find the sum of all the elements in the list.

CODE:

OUTPUT:
PRACTICAL -12

Q- Program to print first n Natural numbers and their sum.

CODE:

OUTPUT:
PRACTICAL -13

Q- Program to calculate factorial of an integer using while loop.

CODE:

OUTPUT:
PRACTICAL -14

Q- Program to check whether the given number is palindrome or not.

CODE:

OUTPUT:
PRACTICAL -15

Q-Write a code in python which divide all those list elements by 7 which are divisible

by 7 and multiply list elements by 3.

CODE:

OUTPUT:
PRACTICAL -16

Q- Write a program to print Fibonacci series i.e. 0 1 1 2 3 5 8.......

CODE:

OUTPUT:
PRACTICAL -17

Q- Write a program to print following pattern on screen

**

***

****

CODE:

OUTPUT:
PRACTICAL -18
Q-Program to add the odd numbers up to(and including) a given value N and print the
result.
CODE:

OUTPUT:
PRACTICAL -19

Q- Compute the greatest common divisor and the least common multiple of two

integers.

CODE:

OUTPUT:
PRACTICAL -20

Q- Given two integers x and n ,compute x rest to power n.

CODE:

OUTPUT:
PRACTICAL -21

Q- Test if a number is equal to the sum of cubes of it’s digits . find the smallest and

largest such numbers.

CODE:

OUTPUT:

You might also like