Skip to content

Homework les 4#129

Open
azateyka wants to merge 1 commit intoKartavec:masterfrom
azateyka:lesson4
Open

Homework les 4#129
azateyka wants to merge 1 commit intoKartavec:masterfrom
azateyka:lesson4

Conversation

@azateyka
Copy link
Copy Markdown

Have some question about GitHab )))

print(f'заработная плата сотрудника {res}')
except ValueError:
return print('Not a number')
sal()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

my_new_list = [el for num, el in enumerate(my_list) if my_list[num - 1] < my_list[num]]
print(f'Исходный список {my_list}')
print(f'Новый список {my_new_list}')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

my_list = [2, 2, 2, 7, 23, 1, 44, 44, 3, 2, 10, 7, 4, 11]
my_new_list = [el for el in my_list if my_list.count(el) == 1]
print(my_new_list)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено


# Задание3
print(f'Числа от 20 до 240 кратные 20 или 21 - {[el for el in range(20, 241) if el % 20 == 0 or el % 21 == 0]}')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено


# Задание7
from itertools import count
from math import factorial
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 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