Checkpoint 15.2.2.
- This is the end
- This would be true if we were printing the value of str and we had not changed it on line 2.
- This
- This would be true if the first position was 1 and the substring included the character at the end position, but the first character in a string is at position 0 and the substring won’t include the character at the last position.
- his
- This will return a string that starts at position 1 and ends at position 3.
What will be printed when the following executes?
str = "This is the end"
str = str[1:4]
print(str)