I am not completely expert in Python, but still I am willing to learn good practices while I develop my skills.
I am trying to remove the high and low values from the list of numbers, I know how to do this , but I want to know the better way to do this.
myrawlist = [1, 4, 0, 3, 2]
mysortedlist.sort() #[0, 1, 2, 3, 4]
mytrimmedlist = mylist[1:-1] #[1, 2, 3]
I get the required output, but looking for the better way to do this.