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

Template 5: Checklist Score چالش 6 از جلسه‌ی 79، سخت

الگو (چک‌لیستِ حریمِ خصوصی): QUESTIONS فهرستِ پرسش‌ها با جوابِ امن است و answers جواب‌های کاربر. برای هر پرسش [ok] two-factor on? یا [fix] location tags off? چاپ کن؛ جوابِ ناشناس (نه yes نه no) هم [fix] حساب می‌شود (شکستِ ایمن). در پایان score: 3/5 و توصیه: ۵ → excellent؛ ۳ یا ۴ → good, fix the rest this week؛ کمتر → start with two-factor today.

QUESTIONS = [
    ("two-factor on?", "yes"),
    ("location tags off?", "yes"),
    ("account private?", "yes"),
    ("contact sync off?", "yes"),
    ("same password reused?", "no"),
]
answers = {"two-factor on?": "yes", "location tags off?": "no", "account private?": "yes", "contact sync off?": "maybe", "same password reused?": "no"}

راهنما و جواب این چالش · برگشت به درس جلسه‌ی 79: پروژه‌ی آزاد · چالش بعدی: Rule Engine

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