We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Assignment
Make a Program File
1. Write a Python program to print the sum of following series 12 + 32 + 52 + …..+ n2 2. Write a Python program to print the following pattern * ** *** **** ***** 3. Write a program that takes any two lists L and M of the same size and adds their elements together to form a new list N whose elements are sums of the corresponding elements in L and M. For instance, if L=[3,1,4] amd M=[1,5,9] then N should equal[4,6,13]. 4. Write a program to calculate: A. AREA OF CIRCLE[A=ΠR2] B. AREA OF SQUARE [A=A*A] C. AREA OF RECTANGLE[A=L*B] 5. Write a program to print the n terms of Fibonacci Series: 0 1 1 2 3 5 8 13 6. Write a program to find whether a number is even and odd number. 7. Write a program to display the roots of a quadratic equation. Read the coefficients A, B & C from the user. 8. Write a program to display the first 10 natural numbers. 9. Write a python program to check whether the year is leap year or not. 10. Write a program to find the sum of all even digits and odd digits separately. 11. Write a program to display the even natural number less than 20. 12. Write a program to Display all odd natural numbers less than N, N is entered by the user. 13. Write a Python program to print the simple interest. Accept the details required for calculations. 14. Write a Python program to calculate and display the loss or profit. Input the cost price and selling price from the user. 15. Write a Python program to display the even natural numbers between A than B, A& B are entered by the user. 16. Display the multiplication table of N (up to 10th multiple) 17. Write a Python program to print the following pattern I IN IND INDI INDIA 18. Write a Python program to print the simple interest. Accept the details required for calculations. 19. Write a Python program to input a list and display the largest and smallest number in the list. 20. Write a program to calculate BMI of a person after inputting its weight in kgs and height in meters and then print the nutritional status as per following table : Nutritional Status WHO criteria BMI cut-off Underweight less than 18.5 Normal 18.5 to 24.9 Overweight 25 – 29.9 Obese 30 or above