Stage 2 of 6

Functions & Data Structures

Stage 02 - Functions, Data Structures, and Menus

Building Reusable Code and Working with Data (Python Cybersecurity Learning Path)

Stage 02 Overview

Stage 01 taught you how to write basic Python that runs.

Stage 02 is about writing Python that is reusable, reliable, and structured like real tools.

In this stage you will:


What You Will Build

Tool 1: Temperature Converter

A menu-driven converter that:

Tool 2: Password Strength Checker (Security Challenge)

A password checker that:


Folder Structure

stage_02_Functions_Data_Structures/
└── app/
└── main.py

How to Run

You can run this stage in two supported ways.

Option A (Recommended): Run from the Repository Root

PowerShell (Windows):

python stage_02_Functions_Data_Structures\app\main.py

macOS / Linux:

python app/main.py

Success Checklist (Stage 02 Complete When…)

Functions and Return Values

Data Types and Conversion

- str, int, float, bool

Robust Input Validation

Lists and Dictionaries

Temperature Converter

Results display with appropriate decimal formatting

Password Strength Checker

Code Quality

Git and GitHub

From your repository root folder:

git status
git add stage_02_Functions_Data_Structures
git commit -m "Complete Stage 02 - Functions, Data Structures, and Menus"
git push

Do not proceed to Stage 03 without a clean commit and push.

What’s Next (Stage 03 Preview)

In Stage 03, you will learn to work with files and build more advanced automation tools:

← Previous Stage 2 of 6 Next →