Python: empty a list








del list[:]
list[:]=[]



No comments:

Post a Comment