جواب «Step 3: Exam and Help» چالش 3 از جلسهی 8
سؤال
قدم ۳ از ۴: باز دو فرمان: /exam → Next exam: Math, on Sunday و /help → Commands: /schedule /food /exam.
راهنما
باز هم دو elif قبل از else.
یک جواب درست
import bot
text = input()
if text == "/start":
print("Hi! I am School Bot. Send /help to see what I know.")
elif text == "/schedule":
print("Today: Math, Science, Art")
elif text == "/food":
print("Today's lunch: rice and chicken")
elif text == "/exam":
print("Next exam: Math, on Sunday")
elif text == "/help":
print("Commands: /schedule /food /exam")
else:
print("I don't know that yet. Send /help.")
اول خودت امتحان کن؛ جوابهای دیگر هم قبول است. برگرد و خودت حلش کن