Код: Выделить всё
if(A > B):
return A+1
return A-1
Код: Выделить всё
if(A > B):
return A+1
else:
return A-1
Подробнее здесь: https://stackoverflow.com/questions/919 ... lse-return
Код: Выделить всё
if(A > B):
return A+1
return A-1
Код: Выделить всё
if(A > B):
return A+1
else:
return A-1