Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーにクイズを開始するかどうかを尋ねると、はい、はい、はいなどの答えが返される可能性があります。
可能な答えをリストに入れ、リスト内のすべての要素をpythonで実行し、それらが等しいかどうかを確認したいと思います。
if answer.lower() == 'yeah yes yep yea'.split(): .... blocks of code ....