Loading ...
SeekhoCoding
SELECT PROJECT
PROJECT GOAL (เค•เฅเคฏเคพ เคฌเคจเคพเคจเคพ เคนเฅˆ)
Create a CLI URL Shortener application in Python that takes a list of web links to process automated URL shortening simulations.
Requirements
1. Inside the application, use a dictionary structure to store long URL links mapped against short unique keys.
2. The application will accept a list (url_actions) containing operational tuples like ("shorten", "https://example.com") or ("redirect", "short_key").
3. Run a for loop to process each system action and track the active URL records systematically.
4. Validation Logic :

1. Generate a short unique key code identifier using random choice selections from string alphanumeric arrays.
2. Check and prevent duplicate generation entries if the same long website link is submitted multiple times.
3. Look up stored shortcut database values and correctly return the original long destination URL or throw an error.

5. Print the clear redirection path details directly on the screen along with the active shortening database status.
CHECKLIST


OUTPUT
โ–ถ Pyodide Console v0.26.0 Ready...
โ–ถ Click the 'Run' button above to execute your Python code.
โ–ถ Your program output or errors will appear here.