Nada Yasir

1 نقاط السمعة
2.77 ألف مشاهدات المحتوى
عضو منذ
0

هل يحتاج تعديل ؟

playAgain = "yes" while True: print("Would you like to play again? (yes or no)") if input() not in ('yes', 'y'): else: print("You should choose YES or NO") break initGame()
-1

هل يحتاج اى تعديلات ؟

https://codeshare.io/2pLkDx
1

ما هو الخطا هنا ؟

def choose_cave(): while True: cave = input("which cave will you choose ?.") if cave == 1: print("you find the dragon .") elif cave == 2: print("this cave will lead you to the outside!") else : print("wrong!choose one of the two caves.")
1

انا اريد تصحيح الكود واريد المساعده فى تعديله

import random import time name = input("What is your name ?\n") print("Hello, " + name + ". Let us play an interesting game !!") def displayIntro(): print("You are in a land full of dragons. In front of") print("there are two caves. In one cave the dragon is") print("friendly and will give you his treasure. In the") print("other, the dragon is greedy and hungry and will") print("eat you on sight") print() def choose_cave(): while True: cave = input("which cave will you