You are on page 1of 1

ASSIGNMENT 2

Date : 05.03.2021 Date of Submission: 10.03.2021


Submit in the form of Jupyter Note. Roll Number and Name must be in the First
line.
1. Write a Python program to read 10 numbers from keyboard and find their sum and average
2. Write a Python program to find the sum of the series [ 1-X^2/2!+X^4/4!- .........]. 
3. Write a Python program to check whether a triangle is Equilateral, Isosceles or Scalene.
4. Write a Python program to find HCF (Highest Common Factor) of two numbers.
5. Write a Python program to print all unique elements in a list.
6. Write a Python program to read a file and remove the spaces between two words of its content. 
7. 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any
remainder. What is the smallest positive number that is evenly divisible by all of the numbers
from 1 to 20?
8. Write a Python program to check whether a number is a prime number or not using the function.
9. Write a Python program to Check Whether a Number can be Expressed as Sum of Two Prime
Numbers. 
Test Data :
Input a positive integer: 16
Expected Output :
16 = 3 + 13
16 = 5 + 11
10. Write a C Program to display the pattern like pyramid of n rows using the alphabet. 
A
ABA
ABCBA
ABCDCBA

You might also like