Python 論理演算子

論理演算子

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!”)

投稿者: chosuke

趣味はゲームやアニメや漫画などです

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です