arr=[0]*10print( id(arr) )arr[5:]=[]print( id(arr) )#-------------------------arr2=[0]*10print( id(arr2) )arr2=arr2[:5]print( id(arr2) )
Standard input is empty
47014191538376 47014191538376 47014192020872 47014191538440
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!