instead of returning the entire string[- : returns the empty stringflavor[- : 'this happens because the second number in slice must correspond to boundary that is to the right of the boundary corresponding to the first numberbut both - and correspond to the leftmost boundary in the figure if you need to include the final character of string in your slicethen you can omit the second numberflavor[- :'fig pieof courseusing flavor[- :to get the entire string is bit odd considering that you can use the variable flavor without the slice to get the same resultslices with negative indices are usefulthoughfor getting the last few characters in string for exampleflavor[- :is "piestrings are immutable to wrap this section uplet' discuss an important property of string objects strings are immutablewhich means that you can' change them once you've created them for instancesee what happens when you try to assign new letter to one particular character of stringword "goalword[ "ftraceback (most recent call last)file ""line in word[ "ftypeerror'strobject does not support item assignment