- Информатика
- по питону вот мой код:
по питону вот мой код:
sq = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36]
bq = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 31, 33, 35]
a = int(input())
if a == sq:
print('красный')
elif a == bq:
print('черный')
elif a == 0:
print('зеленый')
else:
print('ошибка ввода')