Skip to content

Conversation

@azateyka
Copy link

Have some question about GitHab )))

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

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}')

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)

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]}')

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

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