diff --git a/for_each.md b/for_each.md index 0e72dc6ae..d4b36999d 100644 --- a/for_each.md +++ b/for_each.md @@ -14,5 +14,5 @@ def for_each(itr, fn): ``` ```py -for_each([1, 2, 3], print) # 1 2 3 +for_each([1, 2, 3], print) # 1 2 3 ``` diff --git a/for_each_right.md b/for_each_right.md index c95f7497b..64bb2e075 100644 --- a/for_each_right.md +++ b/for_each_right.md @@ -14,5 +14,5 @@ def for_each_right(itr, fn): ``` ```py -for_each_right([1, 2, 3], print) # 3 2 1 +for_each_right([1, 2, 3], print) # 3 2 1 ``` diff --git a/have_same_contents.md b/have_same_contents.md index d29afa78e..15f8baa57 100644 --- a/have_same_contents.md +++ b/have_same_contents.md @@ -5,8 +5,8 @@ tags: list,intermediate Returns `True` if two lists contain the same elements regardless of order, `False` otherwise. -Use `set()` on combination of both lists to find the unique values. -Iterate over them with a `for` loop comparing the `count()` of each unique value in each array. +Use `set()` on the combination of both lists to find the unique values. +Iterate over them with a `for` loop comparing the `count()` of each unique value in each list. Return `False` if the counts do not match for any element, `True` otherwise. ```py diff --git a/includes_any.md b/includes_any.md index 12c511973..459953b11 100644 --- a/includes_any.md +++ b/includes_any.md @@ -3,7 +3,7 @@ title: includes_any tags: list,intermediate --- -Returns `True` if any the elements in `values` are included in `lst`, `False` otherwise. +Returns `True` if any element in `values` is included in `lst`, `False` otherwise. Check if any value in `values` is contained in `lst` using a `for` loop, returning `True` if any one value is found, `False` otherwise.