Skip to content

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

Open
silverAndr wants to merge 1 commit into
mainfrom
lesson4
Open

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

Conversation

@silverAndr

Copy link
Copy Markdown
Owner

No description provided.

Comment threadtask2.py
@@ -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]]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Sign up for freeto 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

@silverAndr@evg-evtushenko@serebryakovAO