CBSERanker

Loading

Practice of list-related questions

Practice of list-related questions

1. WAP to remove all odd numbers from the given list.

2. WAP to display the second largest element of a given list.

3. WAP to display frequencies of all the elements of a list.

4. WAP in Python to find and display the sum of all the values which are ending with 3 from a list.

5. WAP to search an element from the given list.

6. Write a program to sort a list of integers in ascending order.

7. Write a program to reverse the elements of a list without using in-built functions.

8. Write a program to remove duplicate elements from a list.

9. Write a program to find the smallest and largest elements from a list.

10. Write a program to merge two lists into a single list and sort the combined list.

Leave a Reply

Your email address will not be published. Required fields are marked *