Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between `del` and `remove()` in Python?

Answer Posted / nashiinformaticssolutions

del` is used to delete a variable or an item at a specific index in a list. `remove()` is used to remove the first occurrence of a value from a list.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is different between class and object?

991


Which method is used to arrange the items in a list in ascending order in python?

798


What is list when we have to use ?

915


Do python classes need init?

968


How python supports encapsulation with respect to functions?

1128


Can I learn python without knowing programming?

982


How to reverse a string in python

940


What is pytables?

848


Write a logic to find the max sum of a list in another list?

847


What is the parameter passing mechanism in Python?

1125


Can we learn python in a week?

867


How to sort a dictionary by key in python?

818


How to remove items from a list while iterating?

742


Which gui is best for python?

818


How do you use n in python?

822