Python Programs for Practical File Class XI
Q1. Input a welcome message and display it.
Q2. Input two numbers and display the larger / smaller number.
Q3. Input three numbers and display the largest / smallest number.
Q4. Generate the following patterns using nested loops:
Q5. Write a program to input the value of x and n and print the sum of the following
series:
Q6. Determine whether a number is a perfect number, an Armstrong number or a
palindrome.
Q7. Input a number and check if the number is a prime or composite number.
Q8. Display the terms of a Fibonacci series.
Q9. Compute the greatest common divisor and least common multiple of two integers.
Q10. Count and display the number of vowels, consonants, uppercase, lowercase
characters in string.
Q11. Input a string and determine whether it is a palindrome or not; convert the case of
characters in a string.
Q12. Find the largest/smallest number in a list/tuple
Q13. Input a list of numbers and swap elements at the even location with the elements at
the odd location.
Q14. Input a list/tuple of elements, search for a given element in the list/tuple.
Q15. 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.