Skip to content

Instantly share code, notes, and snippets.

def print_operation_table(operation, num_rows=6, num_columns=6):
for x in range(1, num_rows + 1):
nums = []
for y in range(1, num_columns + 1):
num = operation(x, y)
nums.append(num)
print(*[str(x) for x in nums])
print_operation_table(lambda x, y: x * y)
text = input().split()
volwes = ['а', 'о', 'э', 'е', 'и', 'ы', 'у', 'ё', 'ю', 'я']
count = list()
for i in text:
c = 0
for j in i:
if j in volwes:
c += 1
count.append(c)
if len(set(count)) == 1: