# Код этой функции не меняйте.
def count_tiles(depth, length, width=None):
if width is None:
width = length
width_side = 2 * width * depth
length_side = 2 * length * depth
bottom_tiles = length * width
total = width_side + length_side + bottom_tiles
return total
# Передайте в функцию нужный параметр и напишите её код.
def make_phrase(count_tiles):
if count_tiles == 11 or count_tiles == 12 or count_tiles == 13 or count_tiles == 14 :
text = 'плиток'
elif count_tiles % 10 == 2 or count_tiles % 10 == 3 or count_tiles % 10 == 4:
text = 'плитки'
elif count_tiles % 10 == 1:
text = 'плитку'
return text
else:
text = 'плиток'
return text
text = 'Для строительства бассейна нужно заготовить'
total_tiles = count_tiles(2, 2, 2)
# Выведите на экран нужное сообщение.
print(text, total_tiles, make_phrase(total_tiles)