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

Which python course is best?

758


How do I debug an extension?

888


What is dataframe in python?

809


What is the necessity to use pass statement in python program?

876


How to make any variable private in python ?

814


What happens when a function doesn’t have a return statement? Is this valid?

777


What are range and xrange?

850


How many kinds of operators do we have in python? Explain arithmetic operators?

747


How to compare two list?

893


Optionally, what statements can you put under a try-except block?

775


Explain garbage collection with python?

844


How to compare two lists in python?

814


Write a program structure in python?

850


What are special methods in python and how to implement?

819


How do you clean pyc files?

769