Class 9th Project AI

Question .....

Q.1 Write a Python program to enter two numbers and perform all arithmetic operations.

Q.2 Write a Python program to enter radius of a circle and find its diameter, circumference and area.

Q.3 Write a Python program to enter P, T, R and calculate Simple Interest and Compound Interest.

Q.4 Write a Python program to check whether a number is even or odd.

Q.5 Write a Python program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F

Q.6 Write a Python program to input basic salary of an employee and calculate its Gross salary according to following:
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary <= 20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%

Q.7 Write a Python program to print all even numbers between 1 to 100. – using while loop

Q.8 Write a Python program to enter a number and print its reverse.

Q.9 Write a Python program to calculate factorial of a number.

Q.10 Write a python program to check whether a number is Armstrong number or not.

Q.11 Write a Python program to print Fibonacci series up to n terms.

Q.12 Write a Python program to check whether a number is palindrome or not.

Q.13 Create a list in Python of children selected for science quiz with following names- Arjun, Sonakshi, Vikram, Sandhya, Sonal, Isha, Kartik Perform the following tasks on the list in sequence-

Print the whole list
Delete the name “Vikram” from the list
Add the name “Jay” at the end
Remove the item which is at the second position.

Q.14 Create a list num=[23,12,5,9,65,44]

print the length of the list
print the elements from second to fourth position using positive indexing
print the elements from position third to fifth using negative indexing

Q.15 Create a list List_1=[10,20,30,40]. Add the elements [14,15,12] using extend function. Now sort the final list in ascending order and print it.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.