Closed ze-dev closed 4 years ago
Code "return lst[1:] == lst[:-1]" will compare two lists:
1st example: [2, 3, 4, 5, 6] and [1, 2, 3, 4, 5] because lst[1:] = [2, 3, 4, 5, 6] and lst[:-1] = [1, 2, 3, 4, 5]
2nd example: [1, 1, 1] and [1, 1, 1]
We have to compare current and next elements of list in cycle (for i in lst), while result is True.
Sorry for my changes in Readme.md, I'll be more attentive.
Description
Resolves #(issue number)
What does your PR belong to?
Types of changes
Checklist: