From b4b729aebd09cb9167cde623a31aab3376d7bbe6 Mon Sep 17 00:00:00 2001 From: samuelfatzinger Date: Tue, 17 Mar 2026 10:55:30 -0500 Subject: [PATCH] Clarify string slicing comment --- Lesson 6 - String Manipulation/StringSlicing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson 6 - String Manipulation/StringSlicing.py b/Lesson 6 - String Manipulation/StringSlicing.py index 1589d03..27dc276 100644 --- a/Lesson 6 - String Manipulation/StringSlicing.py +++ b/Lesson 6 - String Manipulation/StringSlicing.py @@ -1,7 +1,7 @@ # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 -> index word = "photosynthesis" # p h o t o s y n t h e s i s -#OBS: always stops at the previous index(number) +# Note: slicing stops before the end index (the end index is not included) print(word[2:7]) -> #Result: otosy -> #strts from 2 and ends before 7