Practical File
1. Input a welcome message and display it.
OUTPUT:
2. Input two numbers and display the larger / smaller
number.
Output:
[Link] three numbers and display the largest / smallest
number.
OUTPUT:
4.
for 1:
output:
pattern2:
output:
Pattern3:
Output:
4. Determine whether a number is a perfect number, an
Armstrong number or a palindrome.
OUTPUT:
• Input a number and check if the number is a prime or
composite number.
OUTPUT:
• Display the terms of a Fibonacci series.
• Compute the greatest common divisor and least
common multiple of two integers.
OUTPUT:
• Count and display the number of vowels, consonants,
uppercase, lowercase characters in string.
OUTPUT:
• Input a string and determine whether it is a
palindrome or not; convert the case of characters in a
string.
output:
• Find the largest/smallest number in a list/tuple
OUTPUT:
• Input a list of numbers and swap elements at the even
location with the elements at the odd location.
OUTPUT:
• Input a list/tuple of elements, search for a given
element in the list/tuple.
OUTPUT:
• Create a dictionary with the roll number, name and
marks of n students in a class and display the names of
students who have marks above 75.
Output: