Write the output of the following:
>>> x = "hello" >>> print(x[1:-2])
el
The statement x[1:-2] slices the string "hello" starting from index 1 up to index -3. This results in the substring "el", so print(x[1:-2]) outputs "el".
x[1:-2]
print(x[1:-2])