Welcome to the Treehouse Community
Looking to learn something new?
What are ways to remove an element in a list at a certain index?
What are ways to remove an element in a list at a certain index? Possible examples:
james southFront End Web Development Techdegree Graduate 33,258 Points
you can use slice notation, eg if myList is t, putting myList as the argument to remove called on myList would remove the t.
myList = [1,2,3,'t',55] myList.remove(myList) print(myList) [1,2,3,55]