Em học đến bài 35 trong cuốn LearnPython the hard way thì trong code có đoạn While True …( Em đánh dấu ** trong code.
Anh/chị giải thích nghĩa của cái câu này giúp em với ạ:
def bear_room():
print " There is a bear here."
print " The near has a bunch of honey."
print " The fat bear is in front of another door."
print "How are you going to move the bear?"
bear_moved = True
**while True:**
choice = raw_input ("> ")
if choice =="take honey":
dead("The bear looks at you then slaps your face off.")
elif choice == "taunt bear" and not bear_moved:
print "The bear has moved from the door. You can go throught it now."
bear_moved = True
elif choice == "taunt bear" and bear_moved:
dead("The bear gets pissed off and chews your leg off.")
elif choice == "open door" and bear_moved:
gold_room()
else:
print "I gog no idea what that means."

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?