Python, difference between two ways for removing last elem of list
Forimmutablevariable,pythonispass-by-value.Actually,pythonwillcreateanewinstanceforimmutablevariable.Butformutablevariable,pythonispass-by-reference.Ifoundlist=list[0:-1],pythonwillcreateanewsublist,b