Python Code For List Operations