English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Differentiate del with remove( ) function of List. - Computer Science

Advertisements
Advertisements

Question

Differentiate del with remove( ) function of List.

Distinguish Between

Solution

del () statement remove () function
1. del is a statement used to delete the known elements of a list 1. remove() the function is used to delete elements of a list if its index is unknown.
2. The del command can also be used to delete the entire list. 2. The remove () function can be used to delete one or more elements if the index value is not known.
shaalaa.com
Introduction to List
  Is there an error in this question or solution?
Chapter 9: Lists, Tuples, Sets and Dictionary - Evaluation [Page 168]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 9 Lists, Tuples, Sets and Dictionary
Evaluation | Q 4. | Page 168
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×