0% found this document useful (0 votes)
5 views

LIST OF PYTHON PROGRAMS FOR TERM 2

The document lists various Python programming tasks for a Term 2 exam, including implementing algorithms like Linear Search, calculating averages, and generating patterns using nested loops. It also includes tasks related to dictionaries, string manipulation, and mathematical checks such as prime and perfect numbers. The programs cover a range of topics suitable for assessing Python programming skills.

Uploaded by

parasharshagun4
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)
5 views

LIST OF PYTHON PROGRAMS FOR TERM 2

The document lists various Python programming tasks for a Term 2 exam, including implementing algorithms like Linear Search, calculating averages, and generating patterns using nested loops. It also includes tasks related to dictionaries, string manipulation, and mathematical checks such as prime and perfect numbers. The programs cover a range of topics suitable for assessing Python programming skills.

Uploaded by

parasharshagun4
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
You are on page 1/ 2

PYTHON PROGRAMS FOR TERM 2 EXAM

1. WAP to implement Linear Search in a list.


2. Write Python program to print the largest even and largest
odd number in a list.
3. Write a Python program Calculate the Average of Numbers in
a Given List.
4. Write Python Program to search the number of times a
particular number occurs in a list.
5. Write Python program to sort a list of tuples in increasing
order by the last element in each tuple.
6. WAP to check if a given key exists in a dictionary or not.
7. WAP to remove the given key from a dictionary.
8. WAP to Generate the following pattern using nested loop.
*
**
***
****
*****
9. WAP to Generate the following pattern using nested loop.
1
12
123
1234
1 2345
10. WAP to generate the following pattern using nested loop.

A
AB
ABC
ABCD
ABCDE
11. WAP to input the value of x and n and print the sum of the
following series:
12. WAP to Count and display the number of vowels, consonants,
uppercase, lowercase characters in string.
13. Write Python program to Display the terms of a Fibonacci
series.
14. WAP to Determine whether a number is a perfect number.
15. WAP to determine whether a number is an armstrong number.
16. WAP to Input a number and check if the number is a prime or
not.
17. WAP to determine whether a number is a palindrome.
18. Write a Menu-Driven Program to create a simple calculator.

You might also like