Python Code For List Operations In Data