جواب «Step 1: The Playbook Table» چالش 1 از جلسهی 71
سؤال
دیکشنریِ PLAYBOOK را کامل کن: برای کلیدِ "lost phone" این سه قدم را به ترتیب اضافه کن: ("contain", "lock and wipe the phone remotely")، ("contain", "ask the carrier to block the SIM")، ("recover", "change passwords of accounts open on the phone"). بعد برای هر نوعِ حادثه در دیکشنری یک خط به شکلِ hacked account: 5 steps چاپ کن (به ترتیبِ دیکشنری).
راهنما
قدمها تاپلاند و در یک لیست؛ بعد for name, steps in PLAYBOOK.items(): و len(steps).
یک جواب درست
PLAYBOOK = {
"hacked account": [
("contain", "change the password from a clean device"),
("contain", "sign out all devices"),
("recover", "turn on 2FA"),
("recover", "tell friends to ignore messages from you"),
("learn", "write what happened and when"),
],
"lost phone": [
("contain", "lock and wipe the phone remotely"),
("contain", "ask the carrier to block the SIM"),
("recover", "change passwords of accounts open on the phone"),
],
}
for name, steps in PLAYBOOK.items():
print(name + ": " + str(len(steps)) + " steps")
اول خودت امتحان کن؛ جوابهای دیگر هم قبول است. برگرد و خودت حلش کن