0% found this document useful (0 votes)
4 views2 pages

Practical Python Programs for 2025-26

The document is a list of practical programming exercises for Python, covering various topics such as input/output, loops, patterns, and data structures. It includes tasks like finding the largest number, generating patterns, and working with lists and tuples. Additionally, it addresses concepts like perfect numbers, prime checking, and dictionary creation.

Uploaded by

gayatriranjeet35
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Practical Python Programs for 2025-26

The document is a list of practical programming exercises for Python, covering various topics such as input/output, loops, patterns, and data structures. It includes tasks like finding the largest number, generating patterns, and working with lists and tuples. Additionally, it addresses concepts like perfect numbers, prime checking, and dictionary creation.

Uploaded by

gayatriranjeet35
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

List of Practical 2025-26

[Link]. Program Description


1. Write a Python program to input two numbers and display the larger/smaller
number.
2. Write a Python program to input three numbers and display the
largest/smallest number.
3. Generate the following pattern using nested loop
*
**
***
****
*****
******
4. Generate the following pattern using nested loop
12345
1234
123
12
1
5. Generate the following pattern using nested loop
A
AB
ABC
ABCD
ABCDE
6. Write a program to input the value of x and n and print the sum of the given
series
1+x+x2+x3+x4+x5+…………xn
7. Write a program to input the value of x and n and print the sum of the given
series
1-x+x2-x3+x4-x5+…………xn
8. Write a program to determine whether a number is a perfect number, an
Armstrong number or a palindrome.
9. Write a program to input a number and check if the number is a prime or
composite number.
10. Write a program to display the terms of Fibonacci Series
11. Write a program to compute the greatest common divisor and least common
multiple of two integers.
12. Write a program to count and display the number of vowels, consonants,
uppercase and lowercase characters in string.
13. Input a string and determine whether it is a palindrome or not, convert the case
of characters in a string.
14. Write a python program that displays for inserting and deleting elements in a
list. If the user chooses a deletion option, display a submenu and asks if
element is to be deleted with value or by using its position or a list slice is to
be deleted.
15. Write a python program to find the minimum element from a list of element
along with its index in the list.
16. Write a python program to search for an element in a given list of numbers.
17. Write a python program to find frequencies of all elements of a list. Also, print
the list of unique elements in the list and duplicate element in the given list.
18. Write a python program to read a list of n integers(positive as well as
negative). Create two new lists, one having all positive numbers and the other
having all negative numbers from the given list. Print all three list.
19. Write a python program that asks the user to input a number a list to be
appended to an existing list. Whether the user enter a single number or a list of
numbers, the program should append the list accordingly.
20. Write a python program that displays options for inserting and deleting
elements in a list. If the user chooses a deletion option, display a submenu and
asks if element is to be deleted with value or by using its position or a list slice
to be deleted.
21. Write a python program to input a list of numbers and test if a number is equal
to sum of the cubes of its digits. Find the smallest and largest such number
from the given list of numbers.
22. Write a python program to check if the elements in the first half of a tuple are
sorted in ascending order or not.
23. Write a python program to read email IDs of n number of students and store
them in a tuple, one to store only the usernames from the email IDs and second
to store domain names from the email IDs. Print all three tuples at the end of
the program.
24. Write a python program to input names of n students and store them in a tuple.
Also input a name from the user and find if this student is present in the tuple
or not.
25. Write a python program to 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.

You might also like