From ce3c39d8b858b1e2419fd232882600921b2a5dde Mon Sep 17 00:00:00 2001 From: fancling Date: Wed, 27 Dec 2023 06:35:23 +0000 Subject: [PATCH] fix:correct the comment of a string index example --- src/data_types/test_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_types/test_strings.py b/src/data_types/test_strings.py index ae86432f..c8960f5a 100644 --- a/src/data_types/test_strings.py +++ b/src/data_types/test_strings.py @@ -43,7 +43,7 @@ def test_string_type(): # start from -1. word = 'Python' assert word[0] == 'P' # First character. - assert word[5] == 'n' # Fifth character. + assert word[5] == 'n' # Sixth character. assert word[-1] == 'n' # Last character. assert word[-2] == 'o' # Second-last character. assert word[-6] == 'P' # Sixth from the end or zeroth from the beginning.