lst=['松','竹','梅']lst[:]='岁寒三友'print(lst)
Standard input is empty
['岁', '寒', '三', '友']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!