0
0
Cybersecurityknowledge~30 mins

GDPR requirements in Cybersecurity - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding GDPR Requirements
📖 Scenario: You work in a company that handles customer data. Your manager asks you to create a simple checklist of key GDPR requirements to ensure the company respects privacy laws.
🎯 Goal: Build a clear checklist of the main GDPR requirements using a dictionary structure. This checklist will help your team remember important rules to follow when handling personal data.
📋 What You'll Learn
Create a dictionary with exact GDPR requirement names as keys and their short descriptions as values
Add a variable to count how many GDPR requirements are listed
Use a loop to create a new dictionary with only requirements that mention 'consent'
Add a final statement confirming the checklist is ready
💡 Why This Matters
🌍 Real World
Companies must understand and follow GDPR rules to protect customer privacy and avoid legal penalties.
💼 Career
Knowledge of GDPR is essential for roles in data protection, compliance, cybersecurity, and IT management.
Progress0 / 4 steps
1
Create GDPR requirements dictionary
Create a dictionary called gdpr_requirements with these exact entries: 'Lawfulness, fairness and transparency' with value 'Process data legally and fairly', 'Purpose limitation' with value 'Collect data for specified purposes only', 'Data minimization' with value 'Only collect necessary data', 'Consent' with value 'Obtain clear consent from individuals', and 'Data subject rights' with value 'Allow individuals to access and control their data'.
Cybersecurity
Need a hint?

Use curly braces {} to create the dictionary and separate each key-value pair with a comma.

2
Add count of GDPR requirements
Create a variable called requirement_count and set it to the number of items in the gdpr_requirements dictionary.
Cybersecurity
Need a hint?

Use the len() function to count items in the dictionary.

3
Filter requirements mentioning consent
Create a new dictionary called consent_requirements that includes only the entries from gdpr_requirements where the description contains the word 'consent'. Use a for loop with variables key and value to iterate over gdpr_requirements.items().
Cybersecurity
Need a hint?

Check if the word 'consent' is in the description string using the in keyword inside the loop.

4
Add final confirmation statement
Create a variable called checklist_status and set it to the string 'GDPR checklist is ready' to confirm the checklist is complete.
Cybersecurity
Need a hint?

Assign the exact string to the variable as shown.