論理演算子
and なおかつ
ore もしくは
not ~ではない
eng_score = int(input(“English Score?”))
math_score = int(input(“Math Score?”))
#if eng_score == 100 or math_score == 100:
if not (eng_score == 0 or math_score == 0):
print(“OK!”)
else:
print(“NG!”)
eng_score = int(input(“English Score?”))
math_score = int(input(“Math Score?”))
if not (eng_score == 0 or math_score == 0):
print(“OK!”)
else:
print(“NG!”)