From 858271b5d595dbaf88729061123a3b61a0329ee7 Mon Sep 17 00:00:00 2001 From: Michal Petrik Date: Sun, 9 Oct 2022 18:05:02 +0200 Subject: [PATCH] Update 50-slicing.md --- .../03-intermediate-python/20-advanced-looping/50-slicing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/03-intermediate-python/20-advanced-looping/50-slicing.md b/website/content/03-intermediate-python/20-advanced-looping/50-slicing.md index e7aa91c..8d5e768 100644 --- a/website/content/03-intermediate-python/20-advanced-looping/50-slicing.md +++ b/website/content/03-intermediate-python/20-advanced-looping/50-slicing.md @@ -5,7 +5,7 @@ draft: false weight: 5 --- -Slicing is a easy way to create sub-lists from larger lists. If you remember back to our exercise on data types, we can use a slice to obtain a subset of items from a `list`. Remember that a string is just a list of characters. For example: +Slicing is an easy way to create sub-lists from larger lists. If you remember back to our exercise on data types, we can use a slice to obtain a subset of items from a `list`. Remember that a string is just a list of characters. For example: ```python >>> my_string = "Hello, world!" @@ -69,4 +69,4 @@ Python slices also have a *third*, optional argument, called "step" or "stride", {{% notice note %}} You can use a slice to get a subset of items from any data type that maintains an order, such as a `list` or `tuple`, but not from any non-ordered data types, such as `dict` or `set`. -{{% /notice %}} \ No newline at end of file +{{% /notice %}}