私はPythonとstackoverflowコミュニティに比較的新しいので、最初の "helloworldファイル"を書くときに特定した問題について助けてください。Python 3で2つの異なる入力から1つの答えを出力する方法は?
問題が
if information == ("Yes" or "yes") : #still trying to figure out how to make the program respond with "Ok" with both the inputs, "Yes" and "yes"
print('Ok')
print('Ok')
すべてのヘルプ/回答が大幅にappreaciatedされるだろう...それは私は2つの異なった入力文字列の成果から1件の回答を印刷する方法を見つけることができないということです。
if information in ("Yes", "yes"):
print('Ok')
か::
if information.lower() == "yes":
print('Ok')