7. From the string S = “CARPE DIEM”, which ranges return “DIE” and “CAR” ?

‘DIE’ is returned by S[6:9], range 6 to 9

‘CAR’ is returned by S[0:3], range 0 to 3