Skip to content

Conversation

@Oklevin
Copy link

@Oklevin Oklevin commented Apr 2, 2023

No description provided.

return f'Зарплата: {hours * salary_per_our + bonus}'


print(count_salaru(hours, salary_per_our, bonus))

Choose a reason for hiding this comment

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

выполнено

if __name__ == '__main__':
source_list = list_generator(1, 100, 15)
print(f'Исходный список: {source_list}')
print(f'Итоговоый список: {my_list(source_list)}')

Choose a reason for hiding this comment

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

выполнено

Подсказка: используйте функцию range() и генератор.
"""

print([n for n in range(20, 241) if n % 20 == 0 or n % 21 == 0])

Choose a reason for hiding this comment

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

выполнено



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

Choose a reason for hiding this comment

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

выполнено


print(
reduce((lambda x, y: x * y), [i for i in range(100, 1001) if not i % 2])
)

Choose a reason for hiding this comment

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

выполнено

iterator = cycle(lst)

for i in range(len(lst) * 2):
print(next(iterator), end=' ')

Choose a reason for hiding this comment

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

выполнено


num = int(input('Ведите число для вычисления его факториала: '))
for s, f in fact(num):
print(f'{s}! = {f}')

Choose a reason for hiding this comment

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

выполнено

newline = line + '\n'
result.append(newline)
with open("test.txt", "w") as my_fail:
my_fail.writelines(result)

Choose a reason for hiding this comment

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

выполнено

with open('task_5_2.txt', 'r') as f:
for i, line in enumerate(f.readlines(), 1):
print(f'Слов в {i} строке: {count_words(line)}')
print(f'Количество строк: {count_lines(f)}')

Choose a reason for hiding this comment

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

выполнено

)
print(
f'Средний доход сотрудников: {sum(workers.values()) / len(workers): .2f}'
)

Choose a reason for hiding this comment

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

выполнено

f.write(f"{figures[word.lower()]} {delimetr} {digit}\n")
except IOError as e:
print(e)
print('Ошибка ввод-вывода')

Choose a reason for hiding this comment

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

выполнено

answer = user_enter.split()
except ValueError:
print('Ошибка ввода данных')
print(sum(map(int, answer)))

Choose a reason for hiding this comment

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

выполнено

my_dict[subject_name] += int(i[:i.find("(")])
except ValueError:
pass
print(my_dict)

Choose a reason for hiding this comment

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

выполнено

o += 1
middle["average_profit"] = k / o
all_list = [subjects, middle]
json.dump(all_list, jf, ensure_ascii=False, indent=4)

Choose a reason for hiding this comment

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

выполнено



traffic_light = TrafficLight()
traffic_light.running()

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