Step 1: The Model Card چالش 1 از جلسهی 48، آسان
model_card(name, data, right, total, mistakes) کارت را چاپ کند:MODEL CARD: Robo Garden HelperData: the Robo Garden handout (4 parts, made up)Accuracy: 70 % (7 of 10)Where it goes wrong:
و بعد هر اشتباه در یک خط با - اول.
def model_card(name, data, right, total, mistakes):
print("MODEL CARD:", name)
# ---- test (do not change) ----
model_card("Robo Garden Helper", "the Robo Garden handout (4 parts, made up)", 7, 10,
["answers that need the second sentence of a part", "the word 'run' vs 'runs'"])
راهنما و جواب این چالش · برگشت به درس جلسهی 48: پروژهی نهایی ۳: ارائه · چالش بعدی: Step 2: Accuracy from the Tests
بیشتر بخوان: تابع در پایتون: آموزش def، پارامتر و return با مثال