1: WAP to create a random number generator that generates random numbers between the two values provided by the
user.
2: WAP to create a menu to perform the following operations on a user entered list
a) Print elements at even index.
b) Remove odd numbers from the list
c) Right Circular shift (by n)on the elements of the list
d) Double every even element
e) Display even elements at odd locations from the list.
f) Display the sum of elements ending with 3
g) Add element on a specific position given by user
h) Append element to the list
3: Write a program to show entered string is a palindrome or not.
4: WAP to create a menu to show statistics of characters in the user entered string(to counts the number of alphabets ,digits,
uppercase, lowercase, spaces and other characters).
5: Write a program to display frequencies of all the element of a list.
6: Write a program to shift the negative numbers to right and the positive numbers to left in a list entered by the user.
7: Write a program to display those string which are starting with ‘A’ from the given list.
8: WAP to create a user defined tuple and count the occurrence of each element of the tuple using a dictionary .
9: WAP to create a menu driven program to perform the following search operations:
a) Linear Search
b) Binary Search
10: Write a program to perform the following operations on 2D list:
a) Show elements in 2D array format
b) Print Major and minor diagonal of the 2D list
c) Print the sum of diagonal elements
11: Write a program to input name of ‘n’ countries and their capital, it in a dictionary and create a menu to perform the
following operations on it:
a) Add new entry
b) Display in tabular form
c) search and display for a particular country.
d) Update the Capital of a given country
e) Exit.
12: Write a program in Python with a function which accepts a list and exchanges the values of the first half side with the
elements of the second half side elements. Example: If a list of eight elements has initial content as 2,4,1,6,7,9,23,10 The
function should rearrange the list as 7,9,23,10,2,4,1,6
13: Write a menu driven program to perform the following operations:
a) Find the length of the string
b) Concatenate two strings
c) Reverse the string
d) Compare strings
e) Search the position of a substring in a string
14 WAP to create a menu to perform the following operations:
a) Find factorial of a number
b) Print prime numbers with in a range
c) Print Fibonacci series.