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

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 چاپ کن (به ترتیبِ دیکشنری).

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": [
    ],
}

راهنما و جواب این چالش · برگشت به درس جلسه‌ی 71: پروژه: دفترچه‌ی حادثه · چالش بعدی: Step 2: Print One Playbook

بیشتر بخوان: دیکشنری در پایتون: آموزش کامل کلید و مقدار با مثال