List Functions

Lesson 12
Author : Afrixi
Last Updated : October, 2017


Table of Content

Code

Copyfriends = []
friends.append("Oscar")
friends.append("Angela")
friends.insert(1, "Kevin")

# friends.remove("Kevin")
print( friends )
print( friends.index("Oscar") )
print( friends.count("Angela") )
friends.sort()
print( friends )
friends.clear()
print( friends )