Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Q1.

WAP to accept 5 names in list and accept


another name and position to add
in the list. Print the updated list.

Q2.WAP to accept 5 numbers in a list and


accept a number to delete from list. If it
doesnt
exist show error message. Do it with both the
methods using remove and pop functions.
Q3.Write a Python program to find common
items from two lists accepted from user

Q4.WAP to accept no of values and values of


the list and print
minimum value and its position.

Q5.Write a program to input 10 numbers


from the user and find their sum and average.
After that display all those numbers (entered
by the user) which are greater than the
average.
Q6.WAP to check whether the two given lists
are matching or not

Q7.Write a program that store the reverse of


the list into another list.

Q8.WAP to input 10 numbers from the user


and to remove all odd numbers from the
given list.
Q9. Python Program to Remove the Duplicate
Items from a List
Q10.Python Program to Read a List of Words
and Return the Length of the Longest One
Q11.Python Program to Remove the ith
Occurrence of the Given Word in a List where
Words can Repeat.
Q12.Wap to print list items individually in
separate lines.
Q13.Wap to enter list of number and print
square of each element.
Q14.Wap to delete third element of list and
print the deleted item.
Q15.Wap to enter 2 different list and join
them as one.
Q16.Wap to print largest number of list
without using any function.
Q17. 1. Add a value at specified position
2. Add a value at end
3. Remove a value by position
4. Remove a value by data
5. Sort the list
6. Reverse the list
7. Search a value
8. Display all
9. Exit

You might also like