From 2175c6275c790fa11313f530298c55dc15ce3dd0 Mon Sep 17 00:00:00 2001 From: Vlad Silverman Date: Mon, 12 Aug 2019 15:41:46 -0700 Subject: [PATCH] Updated python.md Provided correct description for list elements replacement --- python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.md b/python.md index 1821eb080..26b8c7760 100644 --- a/python.md +++ b/python.md @@ -11,7 +11,7 @@ category: Python list[:-1] # returns all but the last element list[i] = val - list[i:j] = otherlist # replace ith to jth element with otherlist + list[i:j] = otherlist # replace ith to jth-1 elements with otherlist del list[i:j] list.append(item)