17. Negative index -1 belongs to
of string
O First character
O Last character
O Second character
O Second last character
Answers
Answered by
4
In Python, the characters of string can be individually accessed using a method called indexing. ... Forward indexing starts form 0, 1, 2…. Whereas, backward indexing starts form −1, −2, −3…, where −1 is the last element in a string, −2 is the second last, and so on.
Similar questions
Math,
2 months ago
Science,
4 months ago
Science,
4 months ago
Hindi,
9 months ago
Social Sciences,
9 months ago