prog5_12.py

word = input("呪文?")
if word == "開けゴマ":
    print("洞窟は開きました!")

# プログラム5-12(if文と条件式)