Skip to content

Урок-4#5

Merged
filinvlad merged 1 commit intomainfrom
Lesson-4
Jan 30, 2023
Merged

Урок-4#5
filinvlad merged 1 commit intomainfrom
Lesson-4

Conversation

@filinvlad
Copy link
Copy Markdown
Owner

Филин ВВ

Филин ВВ
a *= el
print(f'{n}! = {a}')
else:
print('Факториал от отрицательного числа невозможен!')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

print(el)
else:
break
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.

выполнено

# Вычисляю произведение всех чисел из списка

c = reduce(lambda x, y: x * y, res)
print(c) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено



a = [i for i in range(20, 240) if i % 20 == 0 or i % 21 == 0]
print("Список чисел кратных 20 или 21 в диапазоне (от 20 до 240):\n", *a) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

# Запускаю генератор списка по условиям

new_list = [i for i in my_list if my_list.count(i) == 1]
print("Неповторяющиеся значения в списке:", *new_list) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

#запускаю генератор списка по условиям

list = [my_spisok[i] for i in range(1, len(my_spisok)) if my_spisok[i] > my_spisok[i-1]]
print(f"Список, элементы которого больше предыдущего: ", *list) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

list
my_spisok

стиль!
проверяйте все листинги

return (rez + pr)


print(f"Размер зарплаты: {zp()}") No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

не выполнено
необходимо запускать скрипт с параметрами.

@filinvlad filinvlad merged commit 461fc5d into main Jan 30, 2023
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