Уведомления

Группа в Telegram: @pythonsu

#1 Янв. 19, 2015 19:24:23

awayyy
Зарегистрирован: 2014-11-30
Сообщения: 2
Репутация: +  0  -
Профиль   Отправить e-mail  

Словари. Вопрос [aw]

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.

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

Офлайн

#2 Янв. 19, 2015 19:27:40

terabayt
От: Киев
Зарегистрирован: 2011-11-26
Сообщения: 1099
Репутация: +  103  -
Профиль   Отправить e-mail  

Словари. Вопрос [aw]

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



————————————————
-*- Simple is better than complex -*-

Офлайн

#3 Янв. 19, 2015 19:31:23

awayyy
Зарегистрирован: 2014-11-30
Сообщения: 2
Репутация: +  0  -
Профиль   Отправить e-mail  

Словари. Вопрос [aw]

terabayt, спасибо.

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version