Option 3 str[-1:] should NOT be a right answer?

as titled


Hi @Tom_Liu
Thanks for contacting Educative Team. Yes, you are right. It should be either

  • Only option A is correct
  • If option C is str[: –1], then options A and C will be correct.
    We have updated this.
    Happy Learning :slight_smile: