Skip to content

Выполнение 4-го задания#4

Open
silverAndr wants to merge 1 commit intomainfrom
lesson4
Open

Выполнение 4-го задания#4
silverAndr wants to merge 1 commit intomainfrom
lesson4

Conversation

@silverAndr
Copy link
Owner

No description provided.

@@ -0,0 +1,4 @@
my_list = [2, 65, 3, 5, 8, 14, 28, 38, 53, 46, 31, 2, 4]
print('имходный список:', my_list)
new_list = [el for i, el in enumerate(my_list) if my_list[i] > my_list[i-1]]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Первый элемент сравнивается с последним словом - бага!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants