Код: Выделить всё
def ascending(lst):
for i in range(len(lst)):
if lst == True:
print('YES')
else:
print('NO')
lst = input().split()
print(ascending(lst))
при любом вводе мне выдается только «НЕТ»
Я, будучи новичком, долго сидел и пытался решить эту проблему
Подробнее здесь: https://stackoverflow.com/questions/786 ... ntial-list