estet42 / kommunikado

Imba
0 stars 0 forks source link

Задачи #1

Open estet42 opened 2 months ago

estet42 commented 2 months ago

import math print(math.factorial(int(input("Введите n"))))

estet42 commented 2 months ago

print([1, 1] + [sum(x) for x in zip([1, 1]+[0]int(input("Введите n: ")), [0, 1]+[0]int(input())])])

estet42 commented 2 months ago

print([x for x in range(10, 100) if x % 10 == 6])

estet42 commented 2 months ago

n = int(input()); print('\n'.join([f'{i} x {n} = {i*n}' for i in range(1, 10)]))

estet42 commented 2 months ago

sum_of_even_numbers = sum(int(x) for x in input("Введите три ряда трехзначных четных чисел, разделенных запятыми: ").split(",") if 100 <= int(x) <= 999 and int(x) % 2 == 0)

estet42 commented 3 weeks ago

def print_label(): name = input("Введите имя: ") course = input("Введите курс: ") group = input("Введите группу: ") print(f"Имя: {name}") print(f"Курс: {course}") print(f"Группа: {group}")

print_label()