You are on page 1of 10

Note: Write Aim , Program Coding and Result in your right side and

Output(pencil) in the left side in your record


1. INPUT TWO NUMBERS AND DISPLAY LARGER / SMALLER NUMBER
AIM:
To write a python program to display the larger or smaller number for the
given value.
PROGRAM CODING:

RESULT:
Thus the Python program is executed and the Output is verified.

OUTPUT:
2. INPUT THREE NUMBERS AND DISPLAY LARGEST / SMALLEST NUMBER
AIM:
To write a python program to display the largest or smallest number for the
given value.
PROGRAM CODING:

RESULT:
Thus the Python program is executed and the Output is verified.

OUTPUT:
3.GENERATE THE FOLLOWING PATTERNS USING NESTED LOOP
AIM:
To write a python program to display the pattern using nested loop.

PROGRAM CODING:

RESULT:
Thus the Python program is executed using nested loop and the output is
verified.
Output:
4. WRITE A PROGRAM TO INPUT THE VALUE OF X AND N AND PRINT THE
SUM OF THE FOLLOWING SERIES.
AIM:
To write a python program to enter the values of x and n and
display the sum of the following series.
PROGRAM CODING:

RESULT:
The given number is executed and the sum of following series is verified.
OUTPUT:
5 DETERMINE WHETHER A NUMBER IS A PERFECT NUMBER, AN ARMSTRONG OR A
PALINDROME.
AIM:
To write a python program to determine whether a number is a perfect number, an
armstrong or a palindrome.
PROGRAM CODING:

RESULT:
The given number is checked for Perfect number , an Armstrong or a
Palindrome and the result is obtained.
OUTPUT:
6. Input a number and check if the number is a prime or composite number.
AIM:
To write a program to Input a number and check if the number is a prime or
composite number.
PROGRAM CODING:

RESULT:
The given number is checked for prime or composite number and the
result is obtained.
OUTPUT:
7. DISPLAY THE TERMS OF A FIBONACCI SERIES
AIM:
To write a python program to display the Fibonacci series for the given
value.
PROGRAM CODING:

RESULT:
The Fibonacci series is displayed for the given number and the output is
verified.

OUTPUT:
8. WRITE A PYTHON PROGRAM TO COMPUTE THE GREATEST COMMON
DIVISOR AND LEAST COMMON MULTIPLE OF TWO INTEGERS.
AIM:
To write a python program to compute the greatest common divisor and
least common multiple of two integers.
PROGRAM CODING:

RESULT:
The GCD and LCM of two integers is obtained and the output is verified.

OUTPUT:
9.COUNT AND DISPLAY THE NUMBER OF VOWELS , CONSONANTS ,
UPPERCASE AND LOWERCASE CHARACTERS IN STRING.
AIM:
To write a python program to display the number of Vowels , Consonants ,
Uppercase and Lowercase characters in string.
PROGRAM CODING:

RESULT:
The given string is displayed and the number of vowels , consonants ,
uppercase and lowercase is executed and the output is verified.
OUTPUT:
10. INPUT A STRING AND DETERMINE WHETHER IT IS A PALINDROME OR NOT;
CONVERT THE CASE OF CHARACTERS IN A STRING.
AIM:
To write a python program to Input a string and determine whether it is a
palindrome or not; convert the case of characters in a string.
PROGRAM CODING:

RESULT:
The given text is checked for Palindrome or not and the Output is verified.

OUTPUT:

You might also like