# первая задача
for j in ['а', 'б', 'в', 'г']:
for i in range(1, 9):
if j == 'а':
for x in range(0, i):
print('*', end='')
print('\r')
elif j == 'б':
for x in range(0, (9 - i)):
print('*', end='')
print('\r')
elif j == 'в':
print(' ' * (i - 1), end='')
for x in range(0, (9 - i)):
print('*', end='')
print('\r')
elif j == 'г':
print(' ' * (9 - i - 1), end='')
for x in range(0, i):
print('*', end='')
print('\r')
# вторая задача
for i in range(2):
for j in range(1, 5):
if i == 0:
for x in range(0, (5 - j)):
print('*', end='')
print('\r')
else:
for x in range(0, j):
print('*', end='')
print('\r')
# третья задача
for i in range(1, 9):
s = ''
for j in range(1, 9):
if (i + j) % 2 == 0:
print('*', end='')
else:
print('#', end='')
print('\r')