educative.io

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

as titled


Course: https://www.educative.io/collection/6586453712175104/5983100061876224
Lesson: https://www.educative.io/collection/page/6586453712175104/5983100061876224/5159079044972544

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: