first = int(input('first int: '))
second = int (input('second int: '))
result =0
if first and second:
result =1
elif not first:
result =2
elif first or second:
result=3
else:
result=4
print(result)
1과 0을 입력하면 결과는 3입니다. 누군가 설명을 추가 할 수 있으면 감사하겠습니다.파이썬에서 코드를 이해하는 데 도움이 필요합니다
아니요, 중복 할 수 없습니다. 될 수 없어! –
최근 질문에 대한 답변을 편집했습니다. – gravetii