class11 _practical
class11 _practical
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
AIM:
To write a python program to check whether the user entered number id Odd or Even.
SOURCE CODE:
SAMPLE OUTPUT:
RUN-1
RUN-2
RESULT:
AIM:
To write a program to find the greatest of the three numbers using elif statement.
SOURCE CODE:
SAMPLE OUTPUT:
RUN-1
RUN-2
RESULT:
Thus, the above program is executed and verified successfully.
4. FACTORIAL OF THE GIVEN NUMBER-(FOR LOOP)
AIM:
To write a program to find the factorial of the given number using for loop.
SOURCE CODE:
SAMPLE OUTPUT:
RUN-1:
RUN-2:
RESULT:
Thus, the above program is executed and verified successfully.
5. SIMPLE CALCULATOR (WHILE LOOP)
AIM:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
AIM:
To write a python program to find the frequency of uppercase,lowercase
,digits ans words in a string.
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
Thus, the above program is executed and verified successfully.
9. DISPLAYING THE LIST OF PRIME NUMBERS
AIM:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
SAMPLE OUTPUT:
RESULT:
SAMPLE OUTPUT:
RESULT:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
AIM:
To write a program to search and display the pin code of the given city using
dic onaries.
SOURCE CODE:
SAMPLE OUTPUT:
RUN-1
RUN-2:
AIM:
To write a python menu driven program to perform various string opera ons .
SOURCE CODE:
SAMPLE OUTPUT:
CHOICE 2
CHOICE 3
CHOICE 4
CHOICE 5
RESULT:
Thus, the above program is executed and verified successfully.
15. Perfect number/Armstrong/Palindrome
AIM:
To write a Python program to determine whether a number is a perfect
number, an Armstrong number or a palindrome.
SOURCE CODE:
SAMPLE OUTPUT:
RUN-1
RUN-2
RUN-3
RESULT:
Thus, the above program is executed and verified successfully.
16. MENU DRIVEN PROGRAM TO PERFORM VARIOUS LIST OPERATIONS.
AIM:
To write a python menu driven program to perform various list opera ons.
SOURCE CODE:
SAMPLE OUTPUT:
CHOICE 2:
CHOICE 3:
CHOICE 4:
CHOICE 5:
RESULT:
AIM:
To write a python program to create a func on to add two numbers.
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
Thus, the above program is executed and verified successfully.
18. SUM OF SERIES
AIM:
To write a program to input the value of x and n and print the
sum of the following series.
1+x2+x3+x4…….…. xn
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT:
SOURCE CODE:
SAMPLE OUTPUT:
RESULT: