0
0
Cybersecurityknowledge~30 mins

Cybersecurity career paths - Mini Project: Build & Apply

Choose your learning style9 modes available
Cybersecurity Career Paths
📖 Scenario: You are exploring different career options in cybersecurity to understand what roles exist and what skills they require.
🎯 Goal: Create a simple structured list of cybersecurity career paths with their key responsibilities and required skills.
📋 What You'll Learn
Create a dictionary named career_paths with three cybersecurity roles and their descriptions
Add a variable named min_experience to specify minimum years of experience required
Use a loop to create a new dictionary filtered_careers containing only roles requiring experience less than or equal to min_experience
Add a final key total_roles to filtered_careers showing the count of filtered roles
💡 Why This Matters
🌍 Real World
Understanding cybersecurity career paths helps learners plan their education and job search effectively.
💼 Career
Many cybersecurity jobs require knowing role responsibilities and experience needed to prepare for interviews and career growth.
Progress0 / 4 steps
1
Create the initial career paths dictionary
Create a dictionary called career_paths with these exact entries: 'Security Analyst' with description 'Monitors and protects systems', 'Penetration Tester' with description 'Simulates attacks to find vulnerabilities', and 'Security Engineer' with description 'Designs and implements security solutions'.
Cybersecurity
Need a hint?

Use curly braces {} to create a dictionary with keys as role names and values as descriptions.

2
Add minimum experience variable
Add a variable called min_experience and set it to 3 to represent the minimum years of experience required.
Cybersecurity
Need a hint?

Just create a variable named min_experience and assign the number 3.

3
Filter roles by experience
Create a dictionary called filtered_careers that includes only these roles from career_paths: 'Security Analyst' with experience 2, 'Penetration Tester' with experience 4, and 'Security Engineer' with experience 3. Include only roles where experience is less than or equal to min_experience. Use a for loop with variables role and desc to iterate over career_paths.items().
Cybersecurity
Need a hint?

Use a dictionary experience_required to store years needed for each role. Then loop through career_paths and add roles to filtered_careers if experience is less or equal to min_experience.

4
Add total roles count
Add a key 'total_roles' to the filtered_careers dictionary with the value equal to the number of roles in filtered_careers (excluding 'total_roles' itself).
Cybersecurity
Need a hint?

Use the len() function to count keys in filtered_careers and assign it to the key 'total_roles'.