How to Assign a List Action to a variable in Python?

How do I assign a List action to a variable in Python.

In this example, I want to keep inputList in its original form.(after the insert and extend actions)
and have the List Action of inputList.sort() assigned to the variable of newList
This way I want to have the unsorted inputList as well as a sorted inpputList assigned to the variable of newList.

Any help is appreciated, thanks

@harry_zhao On line 16 try using

newList = sorted(inputList)