Skip to content

Lesson_4#4

Open
dzashivalov wants to merge 1 commit intomainfrom
Lesson_4
Open

Lesson_4#4
dzashivalov wants to merge 1 commit intomainfrom
Lesson_4

Conversation

@dzashivalov
Copy link
Owner

No description provided.

return 0


print(z_func())

Choose a reason for hiding this comment

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

выполнено

src_list = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55]
trg_list = [num for i, num in enumerate(src_list[1:]) if num > src_list[i]]
print(src_list)
print(trg_list) No newline at end of file

Choose a reason for hiding this comment

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

выполнено

@@ -0,0 +1 @@
print(f'{[el for el in range(20, 241) if el % 20 == 0 or el % 21 == 0]}')

Choose a reason for hiding this comment

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

выполнено



print(f'Список четных значений {[el for el in range(99, 1001) if el % 2 == 0]}')
print(f'Результат перемножения всех элементов списка {reduce(my_func, [el for el in range(99, 1001) if el % 2 == 0])}')

Choose a reason for hiding this comment

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

выполнено

print(el)
c += 1
if c >= 10:
break

Choose a reason for hiding this comment

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

выполнено

print(i)
x += 1
else:
break No newline at end of file

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.

2 participants