0% found this document useful (0 votes)
22 views1 page

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

The document provides 10 programming assignments for students. The assignments include writing Python programs to find the sum and average of numbers, calculate a series, check triangle types, find the HCF of numbers, print unique list elements, remove spaces from a file, find the smallest number divisible by numbers from 1 to 20, check for prime numbers, and check if a number can be expressed as the sum of two prime numbers.

Uploaded by

hello world
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

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

The document provides 10 programming assignments for students. The assignments include writing Python programs to find the sum and average of numbers, calculate a series, check triangle types, find the HCF of numbers, print unique list elements, remove spaces from a file, find the smallest number divisible by numbers from 1 to 20, check for prime numbers, and check if a number can be expressed as the sum of two prime numbers.

Uploaded by

hello world
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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