Найти - Пользователи
Полная версия: Словари. Вопрос [aw]
Начало » Python для новичков » Словари. Вопрос [aw]
1
awayyy
Create three dictionaries: lloyd, alice, and tyler. Give each dictionary the keys “name”, “homework”, “quizzes”, and “tests”. Have the “name” key be the name of the student (that is, lloyd's name should be “Lloyd”) and the other keys should be an empty list. (We'll fill in these lists soon!)

lloyd = {
    "name": ["Lloyd"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}
alice = {
    "name": ["Alice"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}
tyler = {
    "name": ["Tyler"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}

Codecacademy: Oops, try again. The name key does not have the value “Lloyd” in your lloyd dictionary.

Что не так? Заранее спасибо.

terabayt
lloyd = {
    "name": "Lloyd",
    "homework": [],
    "quizzes": [],
    "tests": [],
}
alice = {
    "name": "Alice",
    "homework": [],
    "quizzes": [],
    "tests": [],
}
tyler = {
    "name": "Tyler",
    "homework": [],
    "quizzes": [],
    "tests": [],
}
awayyy
terabayt, спасибо.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB