This repository contains all the Python exercises, mini-projects, and the final capstone project developed during the Akamai Python Scripting Fundamentals program.
It includes scripting essentials, input validation utilities, a word-guessing game, text-adventure logic, and a complete mini web application built with Python CGI, HTML, CSS, and SQLite.
Small independent Python scripts demonstrating core programming concepts:
| Script | Description |
|---|---|
check_even.py |
Even/odd number checker |
connect-DB.py |
Basic database connection example |
count_vowels.py |
Counts vowels in a string |
Creating-Word-Guessing-Game.py |
Simple interactive guessing game |
lemonade.py |
Basic arithmetic exercise |
Testing-User-Input.py |
User input handling and validation |
text_adventure.py |
Console-based mini adventure |
using-modules.py |
Demonstrates importing and using modules |
validate_name.py / validate_number.py |
Input validation utilities |
These exercises reinforce Python fundamentals such as loops, functions, conditionals, file handling, and modular programming.
The Capstone/ folder contains a fully functional web application built using Python CGI, HTML, and SQLite.
login.py— Simple login/authentication logicincidents.py— Logs or displays incident informationupdatecontact.py— Updates user contact detailschangepassword.py— Password update handlercreatedatabase.sql— SQL script for creating the SQLite database
index.html,login.html,contact.html,services.htmlstyle.cssimages/batcave.jpg
1_synattack.csv2_arppoison.csv
These log files are used by the incident-handling CGI scripts.
- Start a local CGI server
From inside theCapstonefolder, run:python -m http.server --cgi 8000
- Open in your browser http://localhost:8000/index.html
Make sure your environment allows executing scripts inside the
cgi-bin/directory.
- Python 3.x
- CGI scripting
- HTML & CSS
- SQLite
- CSV processing
This project demonstrates:
- Python scripting fundamentals
- Error handling and input validation
- Working with CSV and external files
- Interactive console programming
- Basic database creation with SQLite
- Building simple web applications using CGI
- Structuring a multi-component project
- Convert the CGI project to Flask or FastAPI
- Add unit tests for all scripts
- Improve UI/UX with a modern frontend
- Add advanced logging and error handling
- Build interactive dashboards to analyze incident logs
This project is intended for educational purposes only.