Post

@Python_Dv Option A - tho
Python slicing explained👇
x.com/i/status/20327…
English

@Python_Dv A. Start at index[2] which is ‘t’. Stop before index[5] - so index[4] which is ‘o’. So we get, ‘tho’.
English

@Python_Dv i believe its A. its like a array for the word so we start with 0. then we get the first number wich would make it "T". then we get the next number wich is the range up to but not including. so 5 would be N but since we are not including the end it would be "O"
English

@Python_Dv Answer is A "tho" s[2:5] starts at index 2 (t) and stops before index 5 (n). Result: t, h, o = "tho"
English

























