Втр 12 Янв 2021 23:18:40
Python. Оценка качества кода. Просьба указать, что
[OP]cclass text_image():
def treagle_up(self):
i = 0
while i <= 12:
print(""i)
i += 1
def treagle_down(self):
i = 11
while i >= 0:
print(""i)
i -= 1
print('Input what image you wont get: \n\
1. triangle in up. \n\
2. triangle in down. \n\
3. triangle mix')
choice = input(': ')
output_image = text_image()
if choice == 1:
output_image.treagle_up()
elif choice == 2:
output_image.treagle_down()
if choice == 3:
output_image.treagle_up()
output_image.treagle_down()