I require some help on how to go about writing a function that removes an item from a list along with how to return a list with an item removed. Any help would be gladly appreciated.
Judgment
0
Newbie Poster
Recommended Answers
Jump to Postyou can use the list.remove function
list = ['sp','am',' and', ' eggs'] list.remove(' eggs') print(list)
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.