Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Types of Cyber Threats
📖 Scenario: You work in a small company's IT department. Your manager asks you to create a simple list of common cyber threats to help educate your coworkers about online safety.
🎯 Goal: Create a list of common cyber threats with their brief descriptions to share with your team.
📋 What You'll Learn
Create a dictionary called cyber_threats with exactly these entries: 'Phishing', 'Malware', 'Ransomware', 'Spyware', and 'Denial of Service'.
Add a variable called threat_level and set it to 'High'.
Create a new dictionary called high_threats that includes only the threats with the threat_level of 'High'.
Add a final key-value pair to cyber_threats with the key 'Threat Level' and the value from threat_level.
💡 Why This Matters
🌍 Real World
Understanding common cyber threats helps individuals and organizations protect their data and systems from attacks.
💼 Career
IT professionals and cybersecurity specialists need to recognize and communicate about different types of cyber threats to maintain security.
Progress0 / 4 steps
1
Create the initial cyber threats dictionary
Create a dictionary called cyber_threats with these exact entries and descriptions: 'Phishing': 'Fraudulent emails to steal information', 'Malware': 'Malicious software that damages devices', 'Ransomware': 'Software that locks files until a ransom is paid', 'Spyware': 'Software that secretly collects user data', and 'Denial of Service': 'Attacks that overload systems to cause shutdown'.
Cybersecurity
Hint
Use curly braces {} to create a dictionary with the exact keys and values given.
2
Add a threat level variable
Add a variable called threat_level and set it to the string 'High'.
Cybersecurity
Hint
Use a simple assignment to create the variable threat_level with the value 'High'.
3
Filter threats by threat level
Create a new dictionary called high_threats that includes only the threats from cyber_threats where the threat_level is 'High'. Since all threats are considered high, copy all entries from cyber_threats into high_threats.
Cybersecurity
Hint
Use a dictionary comprehension to copy all items from cyber_threats into high_threats.
4
Add threat level to the cyber threats dictionary
Add a new key-value pair to the cyber_threats dictionary with the key 'Threat Level' and the value from the variable threat_level.
Cybersecurity
Hint
Use the dictionary key assignment syntax to add the new key and value.
Practice
(1/5)
1. Which of the following is a type of cyber threat that tricks users into revealing personal information by pretending to be a trustworthy entity?
easy
A. Phishing
B. Firewall
C. Encryption
D. Backup
Solution
Step 1: Understand the definition of phishing
Phishing is a cyber threat where attackers send fake messages to trick people into giving sensitive data.