0
0
Cybersecurityknowledge~30 mins

Why forensics preserves evidence in Cybersecurity - See It in Action

Choose your learning style9 modes available
Why Forensics Preserves Evidence
📖 Scenario: You are working as a cybersecurity trainee. Your task is to understand how digital forensics preserves evidence during an investigation. This helps ensure that the evidence remains trustworthy and can be used in court or to solve a case.
🎯 Goal: Build a simple Python dictionary that lists reasons why forensics preserves evidence. Then, add a condition to filter important reasons. Finally, create a summary list of these reasons to understand their importance.
📋 What You'll Learn
Create a dictionary called evidence_reasons with exact keys and values
Add a variable called important_threshold with the value 3
Use a dictionary comprehension to create important_reasons with reasons having values greater or equal to important_threshold
Create a list called summary containing only the keys from important_reasons
💡 Why This Matters
🌍 Real World
Digital forensics experts must carefully preserve evidence to ensure it is reliable and admissible in legal cases.
💼 Career
Understanding evidence preservation is essential for cybersecurity professionals working in incident response and forensic analysis.
Progress0 / 4 steps
1
Create the evidence reasons dictionary
Create a dictionary called evidence_reasons with these exact entries: 'Integrity': 5, 'Chain of Custody': 4, 'Authentication': 3, 'Analysis': 2, 'Presentation': 1.
Cybersecurity
Need a hint?

Use curly braces to create a dictionary with the exact keys and values.

2
Add the important threshold variable
Add a variable called important_threshold and set it to the integer 3.
Cybersecurity
Need a hint?

Just create a variable and assign the number 3 to it.

3
Filter important reasons using dictionary comprehension
Use a dictionary comprehension to create a new dictionary called important_reasons that includes only the items from evidence_reasons where the value is greater than or equal to important_threshold.
Cybersecurity
Need a hint?

Use {key: value for key, value in dict.items() if condition} syntax.

4
Create a summary list of important reasons
Create a list called summary that contains only the keys from the important_reasons dictionary.
Cybersecurity
Need a hint?

Use the keys() method and convert it to a list.