Which of the following statements is FALSE about slicing strings using indices and steps in Python?
a.We can use the [start:stop] syntax to get a substring from a string starting from the start index and ending at the stop index (inclusive).
b.We can use negative indices to slice a string from the end instead of the beginning.
c.We can use the [start:stop:step] syntax to get a substring from a string with a specified step size.
d.We can use the [:] syntax to get a copy of the entire string.
Answer:
Answer by student
a.We can use the [start:stop] syntax to get a substring from a string starting from the start index and ending at the stop index (inclusive).
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.