Class XI Computer Science Holiday Homework
Class XI Computer Science Holiday Homework
Computer Science
2. Write a Python program to accepts two integers and print their sum.
3. Write a program to accept the radius of a circle from the user and display its area and Perimeter.
4. Write a Python program to accept length and width of a rectangle and compute its perimeter and
area.
7. Write a Python program to perform arithmetic calculation. This program accepts two operands and
8. Write a Python Program to calculate factorial of given number using for loop.
9. Write a program to accept a number from the user and display whether it is a palindrome number or
not.
1 2
1 2 3
1 2 3 4
1 2 3 4 5
11. Enter two numbers and swap them without taking the temporary variable.
12. Enter a number and power then compute the power using an exponential operator.
14. Enter two angles of a triangle and find the third angle.
15. Enter any three sides of a rectangle and find the fourth side.
c. Grams to Kilograms
d. Milliliters to liters
18. Write a Python program to find the sum of all even numbers from 1 to 100.
19. Write a Python program to find the sum of the digits of a given number.