operations for lists in python