You are on page 1of 1

EXP 2

TOPICS COVERED.

1. Implement simple python programs using interactive and script mode.

2. Develop python programs using id () and type() functions

3. Implement range () function in python

4. Implement various control statements in python.

1. Write a program to find the square and cube of a number using * operator.

2. An ATM contains Indian currency notes of 100,500 and 1000.To withdraw cash from this ATM
the user has to enter the number of notes he/she want of each currency i.e 100,500,1000.Write
a program to calculate the total amount withdrawn by the person from the ATM in rupees.

3. Write a program to test whether a number is divisible by 5 and 10 Or 5 or 10.

4. Write a program to prompt a user to read the marks of five different subjects. Calculate the total
marks and Percentage of the marks and display the message according to the range of
Percentage given in table.

PERCENTAGE MESSAGE
Per>=90 Distinction
Per>=80&&per<90 First Class
Per>=70&&per<80 Second Class
Per>=60&&per<70 Third Class
Per<60 Fail

5. Write a program that prompts a user to enter two different numbers. Perform basic arithmetic
operations based on the choices.

6. Write a program to find the factorial of a number using the while loop.

7. Write a program to find the sum of the digits of a given number.

8. Write a program to find the whether a three-digit number entered is an Armstrong number or
not.

9. Write a program to print the even numbers from 0 to 10.

10. Write a program to find the sum of numbers from 1 to 20 which are not divisible by 2,3, 5.

You might also like