بتل کد Battle Codeدارد باز می‌شود…

جواب «Step 2: Lessons and Lunch» چالش 2 از جلسه‌ی 8

سؤال

قدم ۲ از ۴: دو فرمان تازه با elif: /schedule → Today: Math, Science, Art و /food → Today's lunch: rice and chicken. else قدم ۱ آخر از همه می‌ماند.

راهنما

دو elif را بین if و 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")
else:
    print("I don't know that yet. Send /help.")

اول خودت امتحان کن؛ جواب‌های دیگر هم قبول است. برگرد و خودت حلش کن