Page not loading? Try clicking here.
Placeholder

#5241
Interactive

초급파이썬 연산자 23 1s 4MB

Problems

컴퓨터에서 0은 거짓(False), 1은 진실(True)로 사용한다.

 

'and'연산자를 사용하여 정수 0 또는 1을 두개 입력받아 두 수가 모두 1이면 True, 둘 중 하나라도 0이면 False를 출력하시오.


Example #1

1 1
True

Example #2

1 0
False

You must sign in to write code.