print("""
welcome to my island
there are two doors in front of you 🚪 a red door and 🚪 a blue door""")
door = input("which door do you want to open? ").lower()
if door == "blue":
print("oops you chose the crocodile door\ngame over 🐊🐊🐊")
elif door == "red":
print("""great now entered a room
you found three boxes: 🎁 white 🎁 black 🎁green""")
gift = input("which box do you open: ").lower()
if gift == "white":
print("oops you opened a box filled with snakes 🐍🐍🐍")
elif gift == "black":
print("oops you opened a box filled with spiders 🕷️🕷️🕷️")
elif gift == "green":
print("congratulations you found the treasure 💰💰💰")
else:
print("invalid choice 🤷♂️🤷♂️🤷♂️")
else:
print("invalid choice 🤷♂️🤷♂️🤷♂️")
4 إعجابات
بداية موفقة…
لكن حاول تنظيم الكود أكثر وترك مسافة بين الأسطر لتسهيل القراءة والتعديل…
بالتوفيق
إعجاب واحد (1)