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 a documentation string?

920


Write an example of a print function in python?

866


How long can an identifier be in python?

1106


Why is not__getattr__invoked when attr==’__str__’?

1062


What's the worst programming language?

841


What is linspace in python?

873


What is setup py?

916


What does r in a circle mean?

969


Is end a keyword in python?

911


What is uuid used for?

833


What is __ pycache __?

987


How does numpy arange work?

920


What is flask- wtf? Explain its features.

1067


What is MySQLdb?

1018


Consider multiple inheritances here. Suppose class c inherits from classes a and b as class c(a,b). Classes a and b both have their own versions of method func(). If we call func() from an object of class c, which version gets invoked?

1170