Delete an element from a list
scores = ["1","2","3"]
# delete a score
score = int(raw_input("Delete which score?: "))
if score in scores:
scores.remove(score)
else:
print score, "isn't in the high scores list."
# list high-score table
for score in scores:
print score
Related examples in the same category