0% found this document useful (0 votes)
6 views1 page

Revision Lists

The document is a revision question set for a Computer Science course at Lakshmi Narayana Vidyanikethan, focusing on list operations in Python. It includes explanations of various list methods for adding, removing, and accessing elements, as well as programming exercises related to list manipulation. Key topics covered include list creation, copying, sorting, and modifying elements, along with practical coding tasks to reinforce these concepts.

Uploaded by

aswanthkr488
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)
6 views1 page

Revision Lists

The document is a revision question set for a Computer Science course at Lakshmi Narayana Vidyanikethan, focusing on list operations in Python. It includes explanations of various list methods for adding, removing, and accessing elements, as well as programming exercises related to list manipulation. Key topics covered include list creation, copying, sorting, and modifying elements, along with practical coding tasks to reinforce these concepts.

Uploaded by

aswanthkr488
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/ 1

LAKSHMI NARAYANA VIDYANIKETHAN

PALAPPURAM
COMPUTER SCIENCE
REVISION QUESTION- CHAPTER LIST

1. Explain various methods of list to add elements in to a list with example.


Append (), extend (), insert ()
2. Explain various methods to remove elements from a list with example.
Remove (), pop (), clear (), Del
3. How to create a list from an existing sequence? Give examples.
 List from strings
 List from tuple
4. Explain various methods to copy lists .Give example for each. What is the significance of
copy () function.
5. Differentiate sort () and sorted () Functions with example.
6. Explain Find () and index () methods using Function.
7. Explain various operations that can be performed on lists.
8. How to access elements of a list .Give examples.
9. How to change/modify elements of a list.
10. Lists are mutable and ordered. Explain with example.

1. Write a program to input a list of numbers .Ask the user to enter a number, then remove all
occurrence of the given number from the list.
2. Write a program to initialize a list of numbers store the numbers which are divisible by 4 in
to another list D.
3. Write a program to input the names of some books in to q list book. Display the name of the
book with maximum number of characters.
4. Write a program to input list of with your marks in 5 subjects. Display the message “success
“if you score more than 40 in all subjects. And display “to be imported “if you have at least
one score list than 40.
5. Let a program to change the list by replaying the numbers divisible by 4 half of the numbers
and others by double of that numbers.
6. Write a program to create a list with first n Fibonacci numbers. Where n is the number of
elements.
7. Write a program to initialise a list with 8 numbers. Increment all even elements by 10 and
decrement all odd elements by 10.
8. Write a program to initialise a list with 8 numbers. Increment all elements at even index by 5
and decrement elements at odd index by 5.
9. Write a program to input a list OL with n integers. Create a new list NL with elements from
OL which are in between 10 and 25.
10. Write a program to input a list of numbers.
i. Calculate and display sum of even and odd elements
ii. Calculate and display sum of elements at even and odd index separately.

You might also like